aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-11-05 16:36:25 +0100
committerTrinity Pointard <trinity.pointard@gmail.com>2021-11-05 16:36:25 +0100
commit9d7535c3f5364424a438b175b57c7873ad809c58 (patch)
tree292f5d6fe949ead325eb01647bdcdc556d7728b0 /src
parentda6efb4b239ebf717e4c30f8e3592b283603d6e6 (diff)
downloadgarage-9d7535c3f5364424a438b175b57c7873ad809c58.tar.gz
garage-9d7535c3f5364424a438b175b57c7873ad809c58.zip
allow missing bootstrap_peers in garage.toml
Diffstat (limited to 'src')
-rw-r--r--src/util/config.rs2
1 files changed, 1 insertions, 1 deletions
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<SocketAddr>,
/// 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<String>,