diff --git a/metered-channel/src/bounded.rs b/metered-channel/src/bounded.rs index 136d280..03478b3 100644 --- a/metered-channel/src/bounded.rs +++ b/metered-channel/src/bounded.rs @@ -363,12 +363,6 @@ impl MeteredReceiver { pub fn len(&self) -> usize { self.meter.calculate_channel_len() } - - #[cfg(feature = "futures_channel")] - /// Returns the current number of messages in the channel based on meter approximation - pub fn len(&self) -> usize { - self.meter.calculate_channel_len() - } } impl futures::stream::FusedStream for MeteredReceiver {