Retry settings sample needs clarification about settings object #1952
Labels
api: pubsub
Issues related to the googleapis/nodejs-pubsub API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
samples
Issues that are directly related to samples.
type: docs
Improvement to the documentation for an API.
In this sample...
https://github.com/googleapis/nodejs-pubsub/blob/main/samples/typescript/publishWithRetrySettings.ts
We are showing the full, original object and documenting what each setting does. However, it's not obvious at all that this entire structure will replace the original in gax. It's easy to end up in a situation where a bunch of the settings get set to zero. This should be improved.
The defaults shown are also old at this point and should be updated.
The text was updated successfully, but these errors were encountered: