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