diff --git a/src/proto/h2/client.rs b/src/proto/h2/client.rs index 9f969c5b13..7ccceac05d 100644 --- a/src/proto/h2/client.rs +++ b/src/proto/h2/client.rs @@ -117,7 +117,7 @@ where Ok(ok) => ok, Err(err) => { debug!("client send request error: {}", err); - let _ = cb.send(Err((::Error::new_canceled(Some(err)), None))); + let _ = cb.send(Err((::Error::new_h2(err), None))); continue; } };