diff options
author | Alex Auvolat <alex@adnab.me> | 2022-12-07 14:21:02 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-12-07 14:21:02 +0100 |
commit | e678452d819cab23f0d00e629d4d5d01eb91baee (patch) | |
tree | 6e2c2d0c0095c0aef11e8a0116e87bfd7776e4c2 | |
parent | 0a641cae9656f22cb7be715a4684f43ca52a76bb (diff) | |
download | df-consul-e678452d819cab23f0d00e629d4d5d01eb91baee.tar.gz df-consul-e678452d819cab23f0d00e629d4d5d01eb91baee.zip |
remove local_node
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -83,12 +83,10 @@ pub struct Consul { url: String, kv_prefix: String, - - pub local_node: String, } impl Consul { - pub fn new(config: ConsulConfig, kv_prefix: &str, local_node: &str) -> Result<Self> { + pub fn new(config: ConsulConfig, kv_prefix: &str) -> Result<Self> { let client = match (&config.client_cert, &config.client_key) { (Some(client_cert), Some(client_key)) => { let mut client_cert_buf = vec![]; @@ -131,7 +129,6 @@ impl Consul { client, url: config.addr.trim_end_matches('/').to_string(), kv_prefix: kv_prefix.to_string(), - local_node: local_node.into(), }) } |