Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ unused_rounding = "warn"
use_self = "warn"
useless_let_if_seq = "warn"
zero_sized_map_values = "warn"
default_trait_access = "warn"

# These are nursery lints which have findings. Allow them for now. Some are not
# quite mature enough for use in our codebase and some we don't really want.
Expand Down
6 changes: 3 additions & 3 deletions msg-socket/src/connection/backoff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{
};
use tokio::time::sleep;

use crate::ConnOptions;
use crate::ClientOptions;

/// Helper trait alias for backoff streams.
/// We define any stream that yields `Duration`s as a backoff
Expand Down Expand Up @@ -41,8 +41,8 @@ impl ExponentialBackoff {
}
}

impl From<&ConnOptions> for ExponentialBackoff {
fn from(options: &ConnOptions) -> Self {
impl From<&ClientOptions> for ExponentialBackoff {
fn from(options: &ClientOptions) -> Self {
Self::new(options.backoff_duration, options.retry_attempts)
}
}
Expand Down
Loading