summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 1 insertions, 4 deletions
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<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(),
})
}