chore: lok

This commit is contained in:
2021-05-17 01:06:07 +08:00
parent fc3eb2622b
commit 5b06d18f7b

View File

@@ -117,7 +117,7 @@ async fn inner_handle_connection(
// Insert the write part of this peer to the peer map.
let (tx, rx) = unbounded();
peer_map.lock().unwrap().insert(addr, tx.clone());
{ peer_map.lock().unwrap().insert(addr, tx.clone()); }
let (outgoing, incoming) = ws_stream.split();