diff --git a/linkd-lib/src/cfg/seed.rs b/linkd-lib/src/cfg/seed.rs index 4e37dda67..9954860d6 100644 --- a/linkd-lib/src/cfg/seed.rs +++ b/linkd-lib/src/cfg/seed.rs @@ -33,7 +33,7 @@ impl Seed { /// # Errors /// /// * If the supplied address cannot be resolved. - async fn from_bootstrap(bootstrap: &Bootstrap) -> Result { + async fn try_from_bootstrap(bootstrap: &Bootstrap) -> Result { if let Some(addr) = lookup_host(bootstrap.addr.clone()).await?.next() { Ok(Self { addrs: vec![addr], @@ -52,7 +52,7 @@ impl Seeds { let mut resolved = Vec::with_capacity(bootstraps.len()); for bootstrap in bootstraps.iter() { - resolved.push(Seed::from_bootstrap(bootstrap).await?); + resolved.push(Seed::try_from_bootstrap(bootstrap).await?); } Ok(Self(resolved))