Skip to content

Commit

Permalink
Updated variable name [(#1680)](GoogleCloudPlatform/python-docs-sampl…
Browse files Browse the repository at this point in the history
  • Loading branch information
anguillanneuf authored and plamut committed Jul 10, 2020
1 parent d264c75 commit 8e689f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/snippets/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
def list_subscriptions_in_topic(project, topic_name):
"""Lists all subscriptions for a given topic."""
# [START pubsub_list_topic_subscriptions]
subscriber = pubsub_v1.PublisherClient()
topic_path = subscriber.topic_path(project, topic_name)
publisher = pubsub_v1.PublisherClient()
topic_path = publisher.topic_path(project, topic_name)

for subscription in subscriber.list_topic_subscriptions(topic_path):
for subscription in publisher.list_topic_subscriptions(topic_path):
print(subscription)
# [END pubsub_list_topic_subscriptions]

Expand Down

0 comments on commit 8e689f7

Please sign in to comment.