standard-ai / ya-gcp

Apache License 2.0
7 stars 8 forks source link

Retry PubSub streaming connections #5

Closed rnarubin closed 2 years ago

rnarubin commented 2 years ago

Previously PubSub streaming would attempt to reconnect on failures while reading messages, but not on the connection initiation. This change includes the initiation in the retry logic.

This also changes the retry configuration for streaming connections to match the values in the Java client library.

rnarubin commented 2 years ago

the doc check failure is potentially a regression in nightly rustdoc (https://github.com/rust-lang/rust/issues/92662) so I'll merge without it