style(client): rename req to resp

This commit is contained in:
wangcong
2017-07-04 00:00:11 +08:00
committed by Sean McArthur
parent c4835c506d
commit d7edc19af2

View File

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