Unverified Commit 310e74dd authored by Bernhard Schuster's avatar Bernhard Schuster Committed by GitHub
Browse files

do not expect on unbounded send (#2530)

parent e9e7e73d
Pipeline #125964 passed with stages
in 34 minutes and 16 seconds
......@@ -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(())
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment