From e678452d819cab23f0d00e629d4d5d01eb91baee Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 7 Dec 2022 14:21:02 +0100 Subject: remove local_node --- src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 77820b8..75091e1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 { + pub fn new(config: ConsulConfig, kv_prefix: &str) -> Result { 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(), }) } -- cgit v1.2.3