We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5969c14 commit 1847314Copy full SHA for 1847314
kafka/consumer/fetcher.py
@@ -613,7 +613,7 @@ def _fetchable_partitions(self):
613
fetchable = self._subscriptions.fetchable_partitions()
614
# do not fetch a partition if we have a pending fetch response to process
615
# use copy.copy to avoid runtimeerror on mutation from different thread
616
- discard = {fetch.topic_partition for fetch in copy.copy(self._completed_fetches)}
+ discard = {fetch.topic_partition for fetch in self._completed_fetches.copy()}
617
current = self._next_partition_records
618
if current:
619
discard.add(current.topic_partition)
0 commit comments