-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: add pubsub #353
feat: add pubsub #353
Conversation
54c2cb8
to
5026b9d
Compare
2612c05
to
297c450
Compare
e2210cb
to
96c0c80
Compare
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.
Looks good. A more idiomatic way to present the subscription to the user would be with generators/async generators. Let's sync up to discuss briefly.
request = pubsub_pb._SubscriptionRequest( | ||
cache_name=cache_name, | ||
topic=topic_name, | ||
# TODO: resume_at_topic_sequence_number |
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.
🎗️
request = pubsub_pb._SubscriptionRequest( | ||
cache_name=cache_name, | ||
topic=topic_name, | ||
# TODO: resume_at_topic_sequence_number |
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.
🎗️
Excellent suggestion, thanks! |
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.
One small change otherwise gtg
This commit adds pubsub capabilities to the Python SDK via the TopicClient. It also corrects the usage of the
@behaves_like
decorator throughout the test code, which had been preventing a large number of tests from ever executing.