Remove unnecessary async from Peer::add_connection
This commit is contained in:
parent
cc56fa9ea6
commit
ec19f0f8e9
4 changed files with 27 additions and 40 deletions
|
@ -82,7 +82,7 @@ impl FakeServer {
|
|||
|
||||
let (client_conn, server_conn, _) = Connection::in_memory(cx.background());
|
||||
let (connection_id, io, incoming) =
|
||||
peer.add_test_connection(server_conn, cx.background()).await;
|
||||
peer.add_test_connection(server_conn, cx.background());
|
||||
cx.background().spawn(io).detach();
|
||||
let mut state = state.lock();
|
||||
state.connection_id = Some(connection_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue