upgrade tokio

This commit is contained in:
rustdesk
2022-07-15 01:29:52 +08:00
parent 9498b77c0a
commit d3fc6ccd9c
5 changed files with 154 additions and 151 deletions

View File

@@ -183,7 +183,7 @@ async fn run_forward(forward: Framed<TcpStream, BytesCodec>, stream: Stream) ->
},
res = stream.next() => {
if let Some(Ok(bytes)) = res {
allow_err!(forward.send(bytes.into()).await);
allow_err!(forward.send(bytes).await);
} else {
break;
}