-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update subscriber example in README to current patterns. #6194
Update subscriber example in README to current patterns. #6194
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we also update from google.cloud import pubsub_v1
?
It's because everywhere else - in the API Library Doc, such as this page: https://googleapis.github.io/google-cloud-python/latest/pubsub/publisher/api/client.html, as well as in our doc samples - we use pubsub_v1
.
Or at lease do from google.cloud import pubsub_v1 as pubsub
, so people will expect that they won't run into any issues using v1.
See aae840a . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make the same import statement update for the publisher code block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, approved too quickly. Would need changes on publisher code block too.
See fee1735 |
Closes #6189.