Various bits and pieces to address PR comments

This commit is contained in:
James Wilson committed 2021-07-13 16:51:14 +01:00
1 parent faedba87d4
commit 9ac5ea7624
6 files changed
+59 -41

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ pub async fn connect(uri: &http::Uri) -> Result<(Sender, Receiver), ConnectError
let path = uri.path();
let socket = TcpStream::connect((host, port)).await?;
socket.set_nodelay(true).unwrap();
socket.set_nodelay(true).expect("socket set_nodelay failed");
// Establish a WS connection:
let mut client = Client::new(socket.compat(), host, &path);