Skip to content

Commit

Permalink
refactor(http2): fix Error::new_canceled call
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Dec 12, 2018
1 parent 9b69fa9 commit 5fe2a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto/h2/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ where
Ok(ok) => ok,
Err(err) => {
debug!("client send request error: {}", err);
let _ = cb.send(Err((::Error::new_canceled(err), None)));
let _ = cb.send(Err((::Error::new_canceled(Some(err)), None)));
continue;
}
};
Expand Down

0 comments on commit 5fe2a47

Please sign in to comment.