diff options
author | Alex Auvolat <alex@adnab.me> | 2020-06-30 18:33:14 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-06-30 18:33:14 +0200 |
commit | fbe8fe81f278aca68de1b686948f94a8c084dcde (patch) | |
tree | d39b64d0bf36033b21307826e7ce6b0ab0848ecf /src/util/config.rs | |
parent | ade29cf63a7c4426f0fa52f12c0ab8e0f0103cb1 (diff) | |
download | garage-fbe8fe81f278aca68de1b686948f94a8c084dcde.tar.gz garage-fbe8fe81f278aca68de1b686948f94a8c084dcde.zip |
Add automatic peer discovery from Consul
Diffstat (limited to 'src/util/config.rs')
-rw-r--r-- | src/util/config.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/config.rs b/src/util/config.rs index 5c01712b..b985114d 100644 --- a/src/util/config.rs +++ b/src/util/config.rs @@ -14,6 +14,8 @@ pub struct Config { pub rpc_bind_addr: SocketAddr, pub bootstrap_peers: Vec<SocketAddr>, + pub consul_host: Option<String>, + pub consul_service_name: Option<String>, #[serde(default = "default_max_concurrent_rpc_requests")] pub max_concurrent_rpc_requests: usize, |