We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3df8543 commit d9394a8Copy full SHA for d9394a8
1 file changed
docs/pubsub_snippets.py
@@ -81,7 +81,7 @@ def client_subscription(client, to_delete): # pylint: disable=unused-argument
81
SUBSCRIPTION_NAME = 'subscription_factory-%d' % (_millis(),)
82
83
# [START client_subscription]
84
- subscription = client.topic(
+ subscription = client.subscription(
85
SUBSCRIPTION_NAME, ack_deadline=60,
86
retain_acked_messages=True)
87
# [END client_subscription]
0 commit comments