net/outbound: Add a TODO note on reseeding peers.

This commit is contained in:
parazyd
2023-08-11 13:26:12 +02:00
parent aee3299e05
commit 814c701677
2 changed files with 3 additions and 1 deletions

View File

@@ -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,
);
}

View File

@@ -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;