Put back an OK unwrap

This commit is contained in:
Tim Kuehn
2016-01-25 23:45:43 -08:00
parent 89ebb4a446
commit cd24e87672

View File

@@ -345,9 +345,7 @@ impl<Reply> RpcFutures<Reply> {
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);
}