Skip to content

Commit

Permalink
Use queue if provided in kwargs (#3924)
Browse files Browse the repository at this point in the history
Fix for a new Queue being instantiated regardless of whether a queue is passed in or not.
  • Loading branch information
garykrige authored and lukesneeringer committed Sep 6, 2017
1 parent 66b5a31 commit 6b0b256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubsub/google/cloud/pubsub_v1/subscriber/policy/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __init__(self, client, subscription, flow_control=types.FlowControl(),
# Create a queue for keeping track of shared state.
if queue is None:
queue = Queue()
self._request_queue = Queue()
self._request_queue = queue

# Call the superclass constructor.
super(Policy, self).__init__(
Expand Down

0 comments on commit 6b0b256

Please sign in to comment.