Skip to content
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 flow control for message publishing #96

Merged
merged 13 commits into from
Jun 2, 2020
Prev Previous commit
Next Next commit
Remove comment about an error not directly raised
  • Loading branch information
plamut committed May 22, 2020
commit b7a40f80c37e567f29416a3090745ba5fd624c3b
5 changes: 0 additions & 5 deletions google/cloud/pubsub_v1/publisher/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,6 @@ def publish(self, topic, data, ordering_key="", **attrs):

pubsub_v1.publisher.exceptions.MessageTooLargeError: If publishing
the ``message`` would exceed the max size limit on the backend.

:exception:`~pubsub_v1.publisher.exceptions.FlowControlLimitError`:
If publishing a new message would exceed the publish flow control
limits and the desired action on overflow is
:attr:`~google.cloud.pubsub_v1.types.LimitExceededBehavior.ERROR`.
"""
# Sanity check: Is the data being sent as a bytestring?
# If it is literally anything else, complain loudly about it.
Expand Down