summaryrefslogtreecommitdiffstats
path: root/src/swarm
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-23 11:20:00 +0200
committertv <tv@krebsco.de>2026-10-23 11:23:02 +0200
commit942eb994e2e3d34deb8fb811d23571c40bf60818 (patch)
tree5be8a646781da0f932845a0a11f2ed92b1a71b51 /src/swarm
parent40ed67015e19cabc41a822c5fd30e2fde0f7e025 (diff)
consistently use the words node, peer, and seed
Diffstat (limited to 'src/swarm')
-rw-r--r--src/swarm/auth.rs2
-rw-r--r--src/swarm/bootstrap.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/swarm/auth.rs b/src/swarm/auth.rs
index 8b1352c..be748e6 100644
--- a/src/swarm/auth.rs
+++ b/src/swarm/auth.rs
@@ -1,7 +1,7 @@
//! Swarm membership by pre-shared key.
//!
//! Mycelium authenticates the sender of every message (`src_pk` can't be forged), so we
-//! always know *who* talks to us. With a swarm key configured, only peers that also know
+//! always know *who* talks to us. With a swarm key configured, only nodes that also know
//! the key may take part: HELLO and HELLO_REPLY carry a tag proving it, and until a peer
//! has sent a valid one, everything else it sends is ignored.
//!
diff --git a/src/swarm/bootstrap.rs b/src/swarm/bootstrap.rs
index b279cb1..7290212 100644
--- a/src/swarm/bootstrap.rs
+++ b/src/swarm/bootstrap.rs
@@ -15,7 +15,7 @@ const BOOTSTRAP_RETRY: Duration = Duration::from_millis(500);
pub(crate) async fn bootstrap(state: &AppState, seeds: &[String]) -> Result<()> {
if seeds.is_empty() {
- info!("Initializing genesis node (no seed peers configured)");
+ info!("Initializing genesis node (no seeds configured)");
state.initial_sync_done.store(true, Ordering::Release);
state.mark_ready(Uuid::new_v4().to_string()).await?;
return Ok(());
@@ -29,9 +29,9 @@ pub(crate) async fn bootstrap(state: &AppState, seeds: &[String]) -> Result<()>
let mut peers = Vec::new();
for seed in seeds {
- match state.transport.resolve_peer(seed).await {
+ match state.transport.resolve_seed(seed).await {
Ok(peer) => {
- debug!(seed = %seed, peer = %peer, "Resolved seed to peer");
+ debug!(seed = %seed, peer = %peer, "Resolved seed");
peers.push(peer)
}
Err(e) => warn!(seed = %seed, error = %e, "Ignoring seed argument"),