Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed May 22, 2024
1 parent f70e519 commit 95fdddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions iroh-gossip/src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ impl Actor {
Some(res) = self.conn_manager.next() => {
trace!(?i, "tick: conn_manager");
match res {
Ok(conn) => self.handle_new_connection(conn).await,
Ok(conn) => self.handle_new_connection(conn),
Err(err) => {
self.handle_in_event(InEvent::PeerDisconnected(err.node_id), Instant::now()).await?;
}
Expand Down Expand Up @@ -545,7 +545,7 @@ impl Actor {
Ok(())
}

async fn handle_new_connection(&mut self, new_conn: ConnInfo) {
fn handle_new_connection(&mut self, new_conn: ConnInfo) {
let ConnInfo {
conn,
node_id,
Expand Down
3 changes: 0 additions & 3 deletions iroh-net/src/conn_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,6 @@ mod tests {
}

tasks.abort_all();
while let Some(r) = tasks.join_next().await {
assert!(r.unwrap_err().is_cancelled());
}

Ok(())
}
Expand Down

0 comments on commit 95fdddb

Please sign in to comment.