Skip to content

Commit

Permalink
Update comment and fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Dec 7, 2023
1 parent d99968a commit 7a51714
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions zebra-network/src/peer_set/initialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -864,10 +864,7 @@ where
// Increment the connection count before we spawn the connection.
let outbound_connection_tracker = active_outbound_connections.track_connection();
let outbound_connections = active_outbound_connections.update_count();
debug!(
?outbound_connections,
"opening an outbound peer connection"
);
debug!(?outbound_connections, "opening an outbound peer connection");

// Spawn each handshake or crawl into an independent task, so handshakes can make
// progress while crawls are running.
Expand Down Expand Up @@ -1052,7 +1049,8 @@ where
+ 'static,
C::Future: Send + 'static,
{
// The maximum number of open or pending connections before we log an info-level message.
// If Zebra only has a few connections, we log connection failures at info level,
// so users can diagnose and fix the problem. This defines the threshold for info logs.
const MAX_CONNECTIONS_FOR_INFO_LOG: usize = 5;

// # Correctness
Expand Down

0 comments on commit 7a51714

Please sign in to comment.