From cd24e876725cf098f1cb4fc2aa1d259676b64594 Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Mon, 25 Jan 2016 23:45:43 -0800 Subject: [PATCH] Put back an OK unwrap --- tarpc/src/protocol.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tarpc/src/protocol.rs b/tarpc/src/protocol.rs index fea4688..7bddb77 100644 --- a/tarpc/src/protocol.rs +++ b/tarpc/src/protocol.rs @@ -345,9 +345,7 @@ impl RpcFutures { fn complete_reply(&mut self, id: u64, reply: Reply) { if let Some(tx) = self.0.as_mut().unwrap().remove(&id) { - if let Err(e) = tx.send(reply) { - warn!("Client dropped receiver for id {} before receiving reply: {}", id, e); - } + tx.send(reply).unwrap(); } else { warn!("RpcFutures: expected sender for id {} but got None!", id); }