Update subscriber example in README to current patterns.#6194
Conversation
anguillanneuf
left a comment
There was a problem hiding this comment.
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 . |
anguillanneuf
left a comment
There was a problem hiding this comment.
Please make the same import statement update for the publisher code block.
anguillanneuf
left a comment
There was a problem hiding this comment.
Oops, approved too quickly. Would need changes on publisher code block too.
See fee1735 |
Closes #6189.