Skip to content

Commit 275b399

Browse files
Apply suggestions from code review
Co-authored-by: Divma <26765164+divagant-martian@users.noreply.github.com>
1 parent 4c6e223 commit 275b399

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

iroh-net/src/magicsock/relay_actor.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ struct ActiveRelay {
5656
relay_client_receiver: relay::client::ClientReceiver,
5757
/// The set of remote nodes we know are present on this relay server.
5858
///
59-
/// If we receive messages from a remote node via this server it is added to this set,
60-
/// if the server notifies us this node is gone it is removed from this set.
59+
/// If we receive messages from a remote node via, this server it is added to this set.
60+
/// If the server notifies us this node is gone, it is removed from this set.
6161
node_present: BTreeSet<NodeId>,
6262
backoff: backoff::exponential::ExponentialBackoff<backoff::SystemClock>,
6363
last_packet_time: Option<Instant>,
@@ -412,7 +412,7 @@ impl RelayActor {
412412
url: &RelayUrl,
413413
remote_node: Option<&NodeId>,
414414
) -> relay::client::Client {
415-
debug!("connect relay {} for peer {:?}", url, remote_node);
415+
debug!(%url, ?remote_node, "connect relay");
416416
// See if we have a connection open to that relay node ID first. If so, might as
417417
// well use it. (It's a little arbitrary whether we use this one vs. the reverse route
418418
// below when we have both.)

0 commit comments

Comments
 (0)