mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Extract block announce validation from ChainSync (#1170)
This commit is contained in:
@@ -123,6 +123,11 @@ impl<T> TracingUnboundedSender<T> {
|
||||
s
|
||||
})
|
||||
}
|
||||
|
||||
/// The number of elements in the channel (proxy function to [`async_channel::Sender`]).
|
||||
pub fn len(&self) -> usize {
|
||||
self.inner.len()
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> TracingUnboundedReceiver<T> {
|
||||
@@ -139,6 +144,11 @@ impl<T> TracingUnboundedReceiver<T> {
|
||||
s
|
||||
})
|
||||
}
|
||||
|
||||
/// The number of elements in the channel (proxy function to [`async_channel::Receiver`]).
|
||||
pub fn len(&self) -> usize {
|
||||
self.inner.len()
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Drop for TracingUnboundedReceiver<T> {
|
||||
|
||||
Reference in New Issue
Block a user