refactor(client): restore handshake to by-ref

This commit is contained in:
Sean McArthur
2019-08-19 16:10:57 -07:00
parent 41f4173615
commit 7508bd87b0
2 changed files with 37 additions and 35 deletions

View File

@@ -514,8 +514,6 @@ where C: Connect + Sync + 'static,
let is_h2 = is_ver_h2 || connected.alpn == Alpn::H2;
Either::Left(Box::pin(conn_builder
.http2_only(is_h2)
// TODO: convert client::conn::Builder to be by-value?
.clone()
.handshake(io)
.and_then(move |(tx, conn)| {
trace!("handshake complete, spawning background dispatcher task");