Skip to content

Commit 767eaa3

Browse files
Pub/Sub: fix subscriber async region tag mistake (#2334)
1 parent 8ade7dd commit 767eaa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pubsub/cloud-client/subscriber.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def callback(message):
198198
def receive_messages_with_custom_attributes(project_id, subscription_name):
199199
"""Receives messages from a pull subscription."""
200200
# [START pubsub_subscriber_sync_pull_custom_attributes]
201+
# [START pubsub_subscriber_async_pull_custom_attributes]
201202
import time
202203

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

230232

0 commit comments

Comments
 (0)