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 8
8
from kafka .partitioner .default import DefaultPartitioner
9
9
from taskiq import AsyncResultBackend , BrokerMessage
10
10
from taskiq .abc .broker import AsyncBroker
11
- from taskiq .compat import model_dump
12
11
13
12
from taskiq_aio_kafka .exceptions import WrongAioKafkaBrokerParametersError
14
13
from taskiq_aio_kafka .models import KafkaConsumerParameters , KafkaProducerParameters
@@ -151,7 +150,7 @@ async def startup(self) -> None:
151
150
)
152
151
153
152
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 ( )
155
154
producer_kwargs ["partitioner" ] = partitioner
156
155
self ._aiokafka_producer = AIOKafkaProducer (
157
156
bootstrap_servers = self ._bootstrap_servers ,
@@ -165,7 +164,7 @@ async def startup(self) -> None:
165
164
self ._aiokafka_consumer_params .partition_assignment_strategy
166
165
or (RoundRobinPartitionAssignor ,)
167
166
)
168
- consumer_kwargs = model_dump ( self ._aiokafka_consumer_params )
167
+ consumer_kwargs = self ._aiokafka_consumer_params . model_dump ( )
169
168
consumer_kwargs ["partition_assignment_strategy" ] = (
170
169
partition_assignment_strategy
171
170
)
You can’t perform that action at this time.
0 commit comments