File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 88from kafka .partitioner .default import DefaultPartitioner
99from taskiq import AsyncResultBackend , BrokerMessage
1010from taskiq .abc .broker import AsyncBroker
11- from taskiq .compat import model_dump
1211
1312from taskiq_aio_kafka .exceptions import WrongAioKafkaBrokerParametersError
1413from taskiq_aio_kafka .models import KafkaConsumerParameters , KafkaProducerParameters
@@ -151,7 +150,7 @@ async def startup(self) -> None:
151150 )
152151
153152 partitioner = self ._aiokafka_producer_params .partitioner or DefaultPartitioner ()
154- producer_kwargs = model_dump ( self ._aiokafka_producer_params )
153+ producer_kwargs = self ._aiokafka_producer_params . model_dump ( )
155154 producer_kwargs ["partitioner" ] = partitioner
156155 self ._aiokafka_producer = AIOKafkaProducer (
157156 bootstrap_servers = self ._bootstrap_servers ,
@@ -165,7 +164,7 @@ async def startup(self) -> None:
165164 self ._aiokafka_consumer_params .partition_assignment_strategy
166165 or (RoundRobinPartitionAssignor ,)
167166 )
168- consumer_kwargs = model_dump ( self ._aiokafka_consumer_params )
167+ consumer_kwargs = self ._aiokafka_consumer_params . model_dump ( )
169168 consumer_kwargs ["partition_assignment_strategy" ] = (
170169 partition_assignment_strategy
171170 )
You can’t perform that action at this time.
0 commit comments