Skip to content

Commit

Permalink
Fix merge damage
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Oct 2, 2023
1 parent 4fab4d5 commit b0aeab3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions metered-channel/src/bounded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,6 @@ impl<T> MeteredReceiver<T> {
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<T> futures::stream::FusedStream for MeteredReceiver<T> {
Expand Down

0 comments on commit b0aeab3

Please sign in to comment.