From af2443728143f1d58191440f2d31e7131c715ae6 Mon Sep 17 00:00:00 2001 From: "Aode (lion)" Date: Mon, 29 Nov 2021 19:40:47 -0600 Subject: [PATCH] breaker-session: clippy --- apub-breaker-session/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apub-breaker-session/src/lib.rs b/apub-breaker-session/src/lib.rs index 6a52d23..083faf1 100644 --- a/apub-breaker-session/src/lib.rs +++ b/apub-breaker-session/src/lib.rs @@ -24,12 +24,14 @@ struct Breaker { broken_at: Instant, } +type BreakerKey = (Host, Option); + /// The BreakerSession type #[derive(Clone, Debug)] pub struct BreakerSession { limit: usize, breaker_duration: Duration, - hosts: Arc, Option), Breaker>>, + hosts: Arc>, } impl BreakerSession {