style(client): rename req to resp
This commit is contained in:
@@ -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())),
|
||||
|
||||
Reference in New Issue
Block a user