Skip to content

Commit

Permalink
nit: remove redundant/wrong Pub/Sub region tag [(#4027)](GoogleCloudP…
Browse files Browse the repository at this point in the history
  • Loading branch information
anguillanneuf authored Jun 11, 2020
1 parent 0e325bf commit 2c87a45
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions samples/snippets/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ def callback(message):

def receive_messages_with_custom_attributes(project_id, subscription_id, timeout=None):
"""Receives messages from a pull subscription."""
# [START pubsub_subscriber_sync_pull_custom_attributes]
# [START pubsub_subscriber_async_pull_custom_attributes]
from concurrent.futures import TimeoutError
from google.cloud import pubsub_v1
Expand Down Expand Up @@ -383,7 +382,6 @@ def callback(message):
except TimeoutError:
streaming_pull_future.cancel()
# [END pubsub_subscriber_async_pull_custom_attributes]
# [END pubsub_subscriber_sync_pull_custom_attributes]


def receive_messages_with_flow_control(project_id, subscription_id, timeout=None):
Expand Down

0 comments on commit 2c87a45

Please sign in to comment.