breaker-session: clippy
This commit is contained in:
parent
772c7f6ecd
commit
af24437281
|
@ -24,12 +24,14 @@ struct Breaker {
|
|||
broken_at: Instant,
|
||||
}
|
||||
|
||||
type BreakerKey = (Host<String>, Option<u16>);
|
||||
|
||||
/// The BreakerSession type
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct BreakerSession {
|
||||
limit: usize,
|
||||
breaker_duration: Duration,
|
||||
hosts: Arc<DashMap<(Host<String>, Option<u16>), Breaker>>,
|
||||
hosts: Arc<DashMap<BreakerKey, Breaker>>,
|
||||
}
|
||||
|
||||
impl BreakerSession {
|
||||
|
|
Loading…
Reference in a new issue