diff --git a/src/client/mod.rs b/src/client/mod.rs index ee25249b..cf27367f 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -184,7 +184,7 @@ where C: Connect, // never had a pooled stream at all e.into() }); - let req = race.and_then(move |client| { + let resp = race.and_then(move |client| { let msg = match body { Some(body) => { Message::WithBody(head, body.into()) @@ -193,7 +193,7 @@ where C: Connect, }; client.call(msg) }); - FutureResponse(Box::new(req.map(|msg| { + FutureResponse(Box::new(resp.map(|msg| { match msg { Message::WithoutBody(head) => response::from_wire(head, None), Message::WithBody(head, body) => response::from_wire(head, Some(body.into())),