Skip to content

Commit

Permalink
Code review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Zaczkowski authored and eopb committed Aug 28, 2024
1 parent d5290d0 commit 211a6de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions reqwest-middleware/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ multipart = ["reqwest/multipart"]
json = ["reqwest/json"]
charset = ["reqwest/charset"]
http2 = ["reqwest/http2"]
rustls-tls = ["reqwest/rustls-tls"]

[dependencies]
anyhow = "1.0.0"
Expand Down
6 changes: 3 additions & 3 deletions reqwest-retry/src/middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub struct RetryTransientMiddleware<
retry_policy: T,
retryable_strategy: R,
#[cfg(feature = "tracing")]
retry_log_level: ::tracing::Level,
retry_log_level: tracing::Level,
}

impl<T: RetryPolicy + Send + Sync> RetryTransientMiddleware<T, DefaultRetryableStrategy> {
Expand All @@ -83,7 +83,7 @@ impl<T: RetryPolicy + Send + Sync> RetryTransientMiddleware<T, DefaultRetryableS
/// Set the log [level][tracing::Level] for retry events.
/// The default is [`WARN`][tracing::Level::WARN].
#[cfg(feature = "tracing")]
pub fn with_retry_log_level(mut self, level: ::tracing::Level) -> Self {
pub fn with_retry_log_level(mut self, level: tracing::Level) -> Self {
self.retry_log_level = level;
self
}
Expand All @@ -100,7 +100,7 @@ where
retry_policy,
retryable_strategy,
#[cfg(feature = "tracing")]
retry_log_level: ::tracing::Level::WARN,
retry_log_level: tracing::Level::WARN,
}
}
}
Expand Down

0 comments on commit 211a6de

Please sign in to comment.