Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: use
&RetryConfig
for retry overrides
This is primarily in preparation for changing `Endpoint::retry_config` to `Arc<RetryConfig>` so that it can be efficiently shared with `Connection`s. It also quite likely that callers would have common `RetryConfig` inside a static or const, so this may also avoid some additional cloning on the caller end. More generally, since we don't need ownership, asking for a reference allows for more global efficiency since the caller gets to use a reference if they have one. BREAKING CHANGE: The `Endpoint::send_message_with` and `Endpoint::try_send_message_with` methods now take `retries` as an `Option<&RetryConfig>`, rather than `Option<RetryConfig>`.
- Loading branch information