diff options
Diffstat (limited to 'src')
-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(), }) } |