Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ods committed Oct 21, 2024
1 parent d81d95d commit 43f4ede
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aiokafka/consumer/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ async def next_record(self, partitions):

for tp in list(self._records.keys()):
if partitions and tp not in partitions:
# Cleanup results for unassigned partitons
# Cleanup results for unassigned partitions
if not self._subscriptions.is_assigned(tp):
del self._records[tp]
continue
Expand Down Expand Up @@ -1129,7 +1129,7 @@ async def fetched_records(self, partitions, timeout=0, max_records=None):
drained = {}
for tp in list(self._records.keys()):
if partitions and tp not in partitions:
# Cleanup results for unassigned partitons
# Cleanup results for unassigned partitions
if not self._subscriptions.is_assigned(tp):
del self._records[tp]
continue
Expand Down
4 changes: 2 additions & 2 deletions tests/test_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ async def test_consumer_rebalance_on_new_topic(self):
# Wait for group to stabilize
assign1 = await listener1.wait_assign()
assign2 = await listener2.wait_assign()
# We expect 2 partitons for autocreated topics
# We expect 2 partitions for autocreated topics
my_partitions = {TopicPartition(my_topic, 0), TopicPartition(my_topic, 1)}
self.assertEqual(assign1 | assign2, my_partitions)
self.assertEqual(consumer1.assignment() | consumer2.assignment(), my_partitions)
Expand All @@ -1118,7 +1118,7 @@ async def test_consumer_rebalance_on_new_topic(self):
# Wait for group to stabilize
assign1 = await listener1.wait_assign()
assign2 = await listener2.wait_assign()
# We expect 2 partitons for autocreated topics
# We expect 2 partitions for autocreated topics
my_partitions = {
TopicPartition(my_topic, 0),
TopicPartition(my_topic, 1),
Expand Down

0 comments on commit 43f4ede

Please sign in to comment.