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/garage/server.rs | |
parent | ade29cf63a7c4426f0fa52f12c0ab8e0f0103cb1 (diff) | |
download | garage-fbe8fe81f278aca68de1b686948f94a8c084dcde.tar.gz garage-fbe8fe81f278aca68de1b686948f94a8c084dcde.zip |
Add automatic peer discovery from Consul
Diffstat (limited to 'src/garage/server.rs')
-rw-r--r-- | src/garage/server.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/garage/server.rs b/src/garage/server.rs index 52d03464..2b618c1a 100644 --- a/src/garage/server.rs +++ b/src/garage/server.rs @@ -61,7 +61,11 @@ pub async fn run_server(config_file: PathBuf) -> Result<(), Error> { garage .system .clone() - .bootstrap(&garage.config.bootstrap_peers[..]) + .bootstrap( + &garage.config.bootstrap_peers[..], + garage.config.consul_host.clone(), + garage.config.consul_service_name.clone() + ) .map(|rv| { info!("Bootstrap done"); Ok(rv) |