Skip to content

Commit

Permalink
Remove unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
ImplOfAnImpl committed Jan 4, 2024
1 parent a73748c commit 609d5dc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions p2p/src/peer_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,6 @@ where
last_ping_check_time: Option<Time>,
/// The time after which a new feeler connection can be established.
next_feeler_connection_time: Time,
/// If true, we've already loaded the predefined addresses into peerdb.
predefined_addresses_already_loaded: bool,
}

/// Takes IP or socket address and converts it to socket address (adding the default peer port if IP address is used)
Expand Down Expand Up @@ -368,7 +366,6 @@ where
last_dns_query_time: None,
last_ping_check_time: None,
next_feeler_connection_time,
predefined_addresses_already_loaded: false,
})
}

Expand Down Expand Up @@ -1792,7 +1789,6 @@ where
for addr in self.chain_config.predefined_peer_addresses() {
self.peerdb.peer_discovered(SocketAddress::new(*addr));
}
self.predefined_addresses_already_loaded = true;
}

/// Runs the `PeerManager` event loop.
Expand Down

0 comments on commit 609d5dc

Please sign in to comment.