diff --git a/rate-limiter/src/token_bucket.rs b/rate-limiter/src/token_bucket.rs index 44ea55c9f5..fd65049ed4 100644 --- a/rate-limiter/src/token_bucket.rs +++ b/rate-limiter/src/token_bucket.rs @@ -338,8 +338,11 @@ impl SharedTokenBucket { need_to_notify_parent: false, } } - - pub fn share(&self) -> Self where TP: Clone, SU: Clone { + pub fn share(&self) -> Self + where + TP: Clone, + SU: Clone, + { Self { shared_bandwidth: self.shared_bandwidth.share(), rate_limiter: self.rate_limiter.clone(),