-
Notifications
You must be signed in to change notification settings - Fork 377
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(pubsub): add option to override subscription #10327
feat(pubsub): add option to override subscription #10327
Conversation
For historical reasons, a `pubsub::SubscriberConnection` has a subscription assigned to it. With this change that subscription becomes the default, and one can provide an override via the `Options` argument.
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
Codecov ReportBase: 93.84% // Head: 93.85% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #10327 +/- ##
========================================
Coverage 93.84% 93.85%
========================================
Files 1596 1596
Lines 145150 145312 +162
========================================
+ Hits 136220 136380 +160
- Misses 8930 8932 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
google/cloud/pubsub/options.h
Outdated
* Override the default subscription for a request. | ||
* | ||
* Some applications need to receive messages from multiple subscriptions. In | ||
* these case they can use this option to override the default |
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.
s/these case/these cases/ or /this case/
google/cloud/pubsub/options.h
Outdated
* Override the default subscription for a request. | ||
* | ||
* Some applications need to receive messages from multiple subscriptions. In | ||
* these case they can use this option to override the default |
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.
s/$/./
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
For historical reasons, a
pubsub::SubscriberConnection
has a subscription assigned to it. With this change that subscription becomes the default, and one can provide an override via theOptions
argument.Motivated by #10320 and #9171
This change is