Skip to content

Commit

Permalink
Pub/Sub: fix subscriber async region tag mistake [(#2334)](GoogleClou…
Browse files Browse the repository at this point in the history
  • Loading branch information
anguillanneuf committed Aug 13, 2019
1 parent d1a0809 commit 3133b6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/snippets/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def callback(message):
def receive_messages_with_custom_attributes(project_id, subscription_name):
"""Receives messages from a pull subscription."""
# [START pubsub_subscriber_sync_pull_custom_attributes]
# [START pubsub_subscriber_async_pull_custom_attributes]
import time

from google.cloud import pubsub_v1
Expand Down Expand Up @@ -225,6 +226,7 @@ def callback(message):
print('Listening for messages on {}'.format(subscription_path))
while True:
time.sleep(60)
# [END pubsub_subscriber_async_pull_custom_attributes]
# [END pubsub_subscriber_sync_pull_custom_attributes]


Expand Down

0 comments on commit 3133b6c

Please sign in to comment.