Skip to content

Commit

Permalink
Pubsub: Add missing region tag [(#1498)](GoogleCloudPlatform/python-d…
Browse files Browse the repository at this point in the history
  • Loading branch information
alixhami authored and plamut committed Jul 10, 2020
1 parent 34fcdf8 commit fc54932
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/snippets/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def delete_topic(project, topic_name):
def publish_messages(project, topic_name):
"""Publishes multiple messages to a Pub/Sub topic."""
# [START pubsub_quickstart_publisher]
# [START pubsub_publish]
publisher = pubsub_v1.PublisherClient()
topic_path = publisher.topic_path(project, topic_name)

Expand All @@ -75,6 +76,7 @@ def publish_messages(project, topic_name):

print('Published messages.')
# [END pubsub_quickstart_publisher]
# [END pubsub_publish]


def publish_messages_with_custom_attributes(project, topic_name):
Expand Down

0 comments on commit fc54932

Please sign in to comment.