allow missing bootstrap_peers in garage.toml

This commit is contained in:
Trinity Pointard 2021-11-05 16:36:25 +01:00
parent da6efb4b23
commit 9d7535c3f5

View File

@ -39,7 +39,7 @@ pub struct Config {
pub rpc_public_addr: Option<SocketAddr>, pub rpc_public_addr: Option<SocketAddr>,
/// Bootstrap peers RPC address /// Bootstrap peers RPC address
#[serde(deserialize_with = "deserialize_vec_addr")] #[serde(deserialize_with = "deserialize_vec_addr", default)]
pub bootstrap_peers: Vec<(NodeID, SocketAddr)>, pub bootstrap_peers: Vec<(NodeID, SocketAddr)>,
/// Consul host to connect to to discover more peers /// Consul host to connect to to discover more peers
pub consul_host: Option<String>, pub consul_host: Option<String>,