Skip to content

Commit

Permalink
Auto-update dependencies. [(#1389)](GoogleCloudPlatform/python-docs-s…
Browse files Browse the repository at this point in the history
  • Loading branch information
dpebot authored and plamut committed Jul 10, 2020
1 parent 3ce5f49 commit b24f725
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/snippets/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-pubsub==0.32.0
google-cloud-pubsub==0.32.1
6 changes: 3 additions & 3 deletions samples/snippets/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@

def list_subscriptions_in_topic(project, topic_name):
"""Lists all subscriptions for a given topic."""
subscriber = pubsub_v1.SubscriberClient()
subscriber = pubsub_v1.PublisherClient()
topic_path = subscriber.topic_path(project, topic_name)

for subscription in subscriber.list_subscriptions(topic_path):
print(subscription.name)
for subscription in subscriber.list_topic_subscriptions(topic_path):
print(subscription)


def list_subscriptions_in_project(project):
Expand Down

0 comments on commit b24f725

Please sign in to comment.