aboutsummaryrefslogtreecommitdiff
path: root/src/garage/server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-06-30 18:33:14 +0200
committerAlex Auvolat <alex@adnab.me>2020-06-30 18:33:14 +0200
commitfbe8fe81f278aca68de1b686948f94a8c084dcde (patch)
treed39b64d0bf36033b21307826e7ce6b0ab0848ecf /src/garage/server.rs
parentade29cf63a7c4426f0fa52f12c0ab8e0f0103cb1 (diff)
downloadgarage-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.rs6
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)