hyper: use new hyper::upgrade

the old Body::on_upgrade method is no more

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2020-12-04 09:11:29 +01:00
parent b5a202acb6
commit 89e9134a3f
4 changed files with 8 additions and 12 deletions

View File

@ -646,10 +646,7 @@ impl HttpClient {
bail!("unknown error");
}
let upgraded = resp
.into_body()
.on_upgrade()
.await?;
let upgraded = hyper::upgrade::on(resp).await?;
let max_window_size = (1 << 31) - 2;