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
fix: Make public API more similar to generated clients #56
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.
This largely works. What's left are:
- Clean up module imports so AdminClient, PublisherClient, and SubscriberClient can be directly imported from google.cloud.pubsublite.
- Fix
ValueError: ClientOptions does not accept an option 'x-goog-pubsub-context'
. I came across this one while trying out publish. assert self._close_callback is not None
in Line 78google/cloud/pubsublite/cloudpubsub/internal/subscriber_impl.py
failed while I was trying out subscribe.- Add tests.
- Add documentation.
I'm not able to publish or subscribe successfully due to these bugs, but if we can get the library working, I think we are good..
google/cloud/pubsublite/cloudpubsub/internal/multiplexed_async_publisher_client.py
Outdated
Show resolved
Hide resolved
|
|
Thank you for all the fixes. I will test it out with samples on Monday. |
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.
Fixes #45
The publisher and subscriber client creation looks good and works in samples.
The remaining issue about suppressing exceptions during subscriber shutdown will be addressed in a later PR.
Fixes #45