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

fix: propagate set options to LeaseManager (from https://github.com/googleapis/nodejs-pubsub/pull/1880) #1954

Merged
merged 6 commits into from
Aug 26, 2024

Conversation

feywind
Copy link
Collaborator

@feywind feywind commented Jul 10, 2024

Bringing this over from #1880 (dermasmid@) so I can work CI on it.

Fixes #1879

@feywind feywind requested review from a team as code owners July 10, 2024 20:05
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: pubsub Issues related to the googleapis/nodejs-pubsub API. labels Jul 10, 2024
@feywind feywind added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 10, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 10, 2024
@feywind feywind changed the title fix: set MaxBytes for AckQueue (from https://github.com/googleapis/nodejs-pubsub/pull/1897) fix: set MaxBytes for AckQueue (from https://github.com/googleapis/nodejs-pubsub/pull/1880) Jul 10, 2024
@feywind feywind changed the title fix: set MaxBytes for AckQueue (from https://github.com/googleapis/nodejs-pubsub/pull/1880) fix: propagate set options to LeaseManager (from https://github.com/googleapis/nodejs-pubsub/pull/1880) Jul 10, 2024
@feywind feywind added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 10, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 10, 2024
options.streamingOptions.maxStreams = Math.min(
maxStreams,
this.maxMessages
);
}

if (this._acks) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not expose these settings more than they already are, since we don't want users to be able to set these batching settings. Flow control is ok though

@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. and removed size: s Pull request size is small. labels Aug 26, 2024
@feywind feywind added automerge Merge the pull request once unit tests and other checks pass. owlbot:run Add this label to trigger the Owlbot post processor. labels Aug 26, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 26, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit cdb0916 into googleapis:main Aug 26, 2024
15 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Aug 26, 2024
@feywind feywind deleted the set branch August 26, 2024 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the googleapis/nodejs-pubsub API. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

calling setOptions on subscriber does not take effect
3 participants