If there's no peers we can't join the gossip?

This commit is contained in:
adz
2024-03-10 22:03:53 +01:00
parent 7a942ab27c
commit 6d8dcdb40d
2 changed files with 2 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ impl Context {
// restore old peers from db, if any
let peers = self.get_peers_for_topic(topic).await?;
if peers.len() == 0 {
// TODO: When there's no peers we will never be able to join the gossip?
warn!(self, "joining gossip with zero peers");
} else {
info!(self, "joining gossip with peers: {peers:?}");
@@ -162,6 +163,7 @@ async fn endpoint_loop(context: Context, endpoint: MagicEndpoint, gossip: Gossip
});
}
}
async fn handle_connection(
context: &Context,
conn: quinn::Connecting,

View File

@@ -19,7 +19,6 @@ use std::path::Path;
use std::str::FromStr;
use anyhow::{anyhow, bail, ensure, format_err, Context as _, Result};
use deltachat_derive::FromSql;
use iroh_gossip::proto::TopicId;
use lettre_email::mime;