We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79a782f commit fb9f70bCopy full SHA for fb9f70b
1 file changed
pubsub/README.rst
@@ -98,8 +98,9 @@ the topic, and subscribe to that.
98
project_id=os.getenv('GOOGLE_CLOUD_PROJECT'),
99
sub='MY_SUBSCRIPTION_NAME', # Set this to something appropriate.
100
)
101
- subscription = subscriber.create_subscription(
+ subscriber.create_subscription(
102
name=subscription_name, topic=topic_name)
103
+ subscription = subscriber.subscribe(subscription_name)
104
105
The subscription is opened asychronously, and messages are processed by
106
use of a callback.
0 commit comments