mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 07:08:05 -05:00
net/outbound: Add a TODO note on reseeding peers.
This commit is contained in:
@@ -312,7 +312,7 @@ impl Channel {
|
||||
} else {
|
||||
error!(
|
||||
target: "net::channel::main_receive_loop()",
|
||||
"Read error on channel {}: {}",
|
||||
"[P2P] Read error on channel {}: {}",
|
||||
self.address(), err,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -302,6 +302,8 @@ impl OutboundSession {
|
||||
/// (exists) or connecting (pending). If no address was found, we'll attempt
|
||||
/// to do peer discovery and try to fill the slot again.
|
||||
async fn load_address(&self, slot_number: usize, transports: &[String]) -> Result<Url> {
|
||||
// TODO: At some point we're able to lose all known peers. We need to reseed at that point.
|
||||
|
||||
loop {
|
||||
let p2p = self.p2p();
|
||||
let retry_sleep = p2p.settings().outbound_connect_timeout;
|
||||
|
||||
Reference in New Issue
Block a user