Skip to content

Commit

Permalink
Removes span.enter() in async code
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Jun 12, 2023
1 parent b10df28 commit d18f814
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zebra-network/src/peer_set/initialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,7 @@ where
);

let connected_addr = peer::ConnectedAddr::new_inbound_direct(addr);
let accept_span = info_span!("listen_accept", peer = ?connected_addr);
let _guard = accept_span.enter();
info!(peer = ?connected_addr, "listen_accept");

debug!("got incoming connection");
handshaker.ready().await?;
Expand Down

0 comments on commit d18f814

Please sign in to comment.