Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 64f41e6

Browse filesBrowse files
Updated variable name (GoogleCloudPlatform#1680)
1 parent 509601b commit 64f41e6
Copy full SHA for 64f41e6

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎pubsub/cloud-client/subscriber.py

Copy file name to clipboardExpand all lines: pubsub/cloud-client/subscriber.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
def list_subscriptions_in_topic(project, topic_name):
3131
"""Lists all subscriptions for a given topic."""
3232
# [START pubsub_list_topic_subscriptions]
33-
subscriber = pubsub_v1.PublisherClient()
34-
topic_path = subscriber.topic_path(project, topic_name)
33+
publisher = pubsub_v1.PublisherClient()
34+
topic_path = publisher.topic_path(project, topic_name)
3535

36-
for subscription in subscriber.list_topic_subscriptions(topic_path):
36+
for subscription in publisher.list_topic_subscriptions(topic_path):
3737
print(subscription)
3838
# [END pubsub_list_topic_subscriptions]
3939

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.