We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb03c69 commit 36316c1Copy full SHA for 36316c1
kafka/producer/keyed.py
@@ -54,7 +54,7 @@ def _next_partition(self, topic, key):
54
self.partitioners[topic] = self.partitioner_class(self.client.get_partition_ids_for_topic(topic))
55
56
partitioner = self.partitioners[topic]
57
- return partitioner.partition(key, self.client.get_partition_ids_for_topic(topic))
+ return partitioner.partition(key)
58
59
def send_messages(self,topic,key,*msg):
60
partition = self._next_partition(topic, key)
0 commit comments