breaker-session: clippy

This commit is contained in:
Aode (lion) 2021-11-29 19:40:47 -06:00
parent 772c7f6ecd
commit af24437281

View file

@ -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 {