Skip to content

Commit 6b0b256

Browse files
garykrigelukesneeringer
authored andcommitted
Use queue if provided in kwargs (#3924)
Fix for a new Queue being instantiated regardless of whether a queue is passed in or not.
1 parent 66b5a31 commit 6b0b256

File tree

1 file changed

+1
-1
lines changed
  • pubsub/google/cloud/pubsub_v1/subscriber/policy

1 file changed

+1
-1
lines changed

pubsub/google/cloud/pubsub_v1/subscriber/policy/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, client, subscription, flow_control=types.FlowControl(),
6161
# Create a queue for keeping track of shared state.
6262
if queue is None:
6363
queue = Queue()
64-
self._request_queue = Queue()
64+
self._request_queue = queue
6565

6666
# Call the superclass constructor.
6767
super(Policy, self).__init__(

0 commit comments

Comments
 (0)