mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 13:31:10 +00:00
do not expect on unbounded send (#2530)
This commit is contained in:
committed by
GitHub
parent
31327eb0c7
commit
05f74c2171
@@ -140,7 +140,7 @@ impl<T> UnboundedMeteredSender<T> {
|
||||
|
||||
/// Attempt to send message or fail immediately.
|
||||
pub fn unbounded_send(&mut self, msg: T) -> result::Result<(), mpsc::TrySendError<T>> {
|
||||
self.inner.unbounded_send(msg).expect("Unbounded send never fails. qed");
|
||||
self.inner.unbounded_send(msg)?;
|
||||
self.meter.fill.fetch_add(1, Ordering::SeqCst);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user