Bump soketto to v0.7.1 (#11203)

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
Qinxuan Chen
2022-04-13 04:43:10 +08:00
committed by GitHub
parent ba8beeed32
commit 3fec108263
3 changed files with 7 additions and 34 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ serde_json = "1.0"
regex = "1.5.5"
platforms = "2.0"
async-std = { version = "1.10.0", features = ["attributes"] }
soketto = "0.4.2"
soketto = "0.7.1"
criterion = { version = "0.3.5", features = ["async_tokio"] }
tokio = { version = "1.17.0", features = ["macros", "time", "parking_lot"] }
wait-timeout = "0.2"
@@ -123,12 +123,12 @@ impl WsServer {
let mut server = Server::new(pending_incoming);
let websocket_key = match server.receive_request().await {
Ok(req) => req.into_key(),
Ok(req) => req.key(),
Err(err) => return Err(Box::new(err) as Box<_>),
};
match server
.send_response(&{ Response::Accept { key: &websocket_key, protocol: None } })
.send_response(&{ Response::Accept { key: websocket_key, protocol: None } })
.await
{
Ok(()) => {},