diff options
author | Alex Auvolat <alex@adnab.me> | 2021-10-19 16:16:10 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-10-19 23:39:45 +0200 |
commit | a8ae78af0ad2174480e64f9d4dd43b8381932f42 (patch) | |
tree | b8b5c71a231f938af633be8502c78e7193f9f6ab /src/util/config.rs | |
parent | 65070f3c05775f6692f4a16b6a304991d0510301 (diff) | |
download | garage-a8ae78af0ad2174480e64f9d4dd43b8381932f42.tar.gz garage-a8ae78af0ad2174480e64f9d4dd43b8381932f42.zip |
Adapt tests to new syntax with public keys
Diffstat (limited to 'src/util/config.rs')
-rw-r--r-- | src/util/config.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/config.rs b/src/util/config.rs index fe0a6fa8..95c5cfc0 100644 --- a/src/util/config.rs +++ b/src/util/config.rs @@ -6,8 +6,8 @@ use std::path::PathBuf; use serde::de::Error as SerdeError; use serde::{de, Deserialize}; -use netapp::NodeID; use netapp::util::parse_and_resolve_peer_addr; +use netapp::NodeID; use crate::error::Error; @@ -117,8 +117,9 @@ where let mut ret = vec![]; for peer in <Vec<&str>>::deserialize(deserializer)? { - let (pubkey, addrs) = parse_and_resolve_peer_addr(peer) - .ok_or_else(|| D::Error::custom(format!("Unable to parse or resolve peer: {}", peer)))?; + let (pubkey, addrs) = parse_and_resolve_peer_addr(peer).ok_or_else(|| { + D::Error::custom(format!("Unable to parse or resolve peer: {}", peer)) + })?; for ip in addrs { ret.push((pubkey.clone(), ip)); } |