From 9d7535c3f5364424a438b175b57c7873ad809c58 Mon Sep 17 00:00:00 2001 From: Trinity Pointard Date: Fri, 5 Nov 2021 16:36:25 +0100 Subject: allow missing bootstrap_peers in garage.toml --- src/util/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/config.rs') diff --git a/src/util/config.rs b/src/util/config.rs index f1c5c019..0e4c76ae 100644 --- a/src/util/config.rs +++ b/src/util/config.rs @@ -39,7 +39,7 @@ pub struct Config { pub rpc_public_addr: Option, /// Bootstrap peers RPC address - #[serde(deserialize_with = "deserialize_vec_addr")] + #[serde(deserialize_with = "deserialize_vec_addr", default)] pub bootstrap_peers: Vec<(NodeID, SocketAddr)>, /// Consul host to connect to to discover more peers pub consul_host: Option, -- cgit v1.2.3