We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 001e897 commit f074335Copy full SHA for f074335
1 file changed
pubsub/google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py
@@ -379,7 +379,9 @@ def _get_initial_request(self):
379
# Any ack IDs that are under lease management need to have their
380
# deadline extended immediately.
381
if self._leaser is not None:
382
- lease_ids = self._leaser.ack_ids
+ # Explicitly copy the list, as it could be modified by another
383
+ # thread.
384
+ lease_ids = list(self._leaser.ack_ids)
385
else:
386
lease_ids = []
387
0 commit comments