Skip to content

Commit

Permalink
linkd: Prefix conversation method
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Simmerl <[email protected]>
  • Loading branch information
xla committed Sep 8, 2021
1 parent f99951e commit 50d5817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linkd-lib/src/cfg/seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Seed {
/// # Errors
///
/// * If the supplied address cannot be resolved.
async fn from_bootstrap(bootstrap: &Bootstrap) -> Result<Self, Error> {
async fn try_from_bootstrap(bootstrap: &Bootstrap) -> Result<Self, Error> {
if let Some(addr) = lookup_host(bootstrap.addr.clone()).await?.next() {
Ok(Self {
addrs: vec![addr],
Expand All @@ -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))
Expand Down

0 comments on commit 50d5817

Please sign in to comment.