Skip to content

Commit fc54932

Browse files
alixhamiplamut
authored andcommitted
Pubsub: Add missing region tag [(#1498)](GoogleCloudPlatform/python-docs-samples#1498)
1 parent 34fcdf8 commit fc54932

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/snippets/publisher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def delete_topic(project, topic_name):
6464
def publish_messages(project, topic_name):
6565
"""Publishes multiple messages to a Pub/Sub topic."""
6666
# [START pubsub_quickstart_publisher]
67+
# [START pubsub_publish]
6768
publisher = pubsub_v1.PublisherClient()
6869
topic_path = publisher.topic_path(project, topic_name)
6970

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

7677
print('Published messages.')
7778
# [END pubsub_quickstart_publisher]
79+
# [END pubsub_publish]
7880

7981

8082
def publish_messages_with_custom_attributes(project, topic_name):

0 commit comments

Comments
 (0)