From fbe8fe81f278aca68de1b686948f94a8c084dcde Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 30 Jun 2020 18:33:14 +0200 Subject: Add automatic peer discovery from Consul --- src/util/config.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util/config.rs') 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, + pub consul_host: Option, + pub consul_service_name: Option, #[serde(default = "default_max_concurrent_rpc_requests")] pub max_concurrent_rpc_requests: usize, -- cgit v1.2.3