Skip to content

Commit

Permalink
Update soketto
Browse files Browse the repository at this point in the history
  • Loading branch information
palango committed Oct 6, 2021
1 parent 5b240f1 commit 704903b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async-std = { version = "1.6", optional = true }
tokio = { version = "1.0", optional = true, features = ["full"] }
tokio-stream = { version = "0.1", optional = true }
tokio-util = { version = "0.6", optional = true, features = ["compat", "io"] }
soketto = { version = "0.5.0", optional = true }
soketto = { version = "0.7.0", optional = true }
## Shared (WS, HTTP)
url = { version = "2.1", optional = true }
## EIP-1193
Expand Down
7 changes: 2 additions & 5 deletions src/transports/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,12 +545,9 @@ mod tests {
let mut server = handshake::Server::new(BufReader::new(BufWriter::new(socket)));
let key = {
let req = server.receive_request().await.unwrap();
req.into_key()
};
let accept = handshake::server::Response::Accept {
key: &key,
protocol: None,
req.key()
};
let accept = handshake::server::Response::Accept { key, protocol: None };
server.send_response(&accept).await.unwrap();
let (mut sender, mut receiver) = server.into_builder().finish();
loop {
Expand Down

0 comments on commit 704903b

Please sign in to comment.