Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Divma <[email protected]>
  • Loading branch information
flub and divagant-martian authored Oct 3, 2024
1 parent 686d609 commit fd3545c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iroh-net/src/magicsock/relay_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ struct ActiveRelay {
relay_client_receiver: relay::client::ClientReceiver,
/// The set of remote nodes we know are present on this relay server.
///
/// If we receive messages from a remote node via this server it is added to this set,
/// if the server notifies us this node is gone it is removed from this set.
/// If we receive messages from a remote node via, this server it is added to this set.
/// If the server notifies us this node is gone, it is removed from this set.
node_present: BTreeSet<NodeId>,
backoff: backoff::exponential::ExponentialBackoff<backoff::SystemClock>,
last_packet_time: Option<Instant>,
Expand Down Expand Up @@ -412,7 +412,7 @@ impl RelayActor {
url: &RelayUrl,
remote_node: Option<&NodeId>,
) -> relay::client::Client {
debug!("connect relay {} for peer {:?}", url, remote_node);
debug!(%url, ?remote_node, "connect relay");
// See if we have a connection open to that relay node ID first. If so, might as
// well use it. (It's a little arbitrary whether we use this one vs. the reverse route
// below when we have both.)
Expand Down

0 comments on commit fd3545c

Please sign in to comment.