remove local_node
This commit is contained in:
parent
0a641cae96
commit
e678452d81
1 changed files with 1 additions and 4 deletions
|
@ -83,12 +83,10 @@ pub struct Consul {
|
||||||
|
|
||||||
url: String,
|
url: String,
|
||||||
kv_prefix: String,
|
kv_prefix: String,
|
||||||
|
|
||||||
pub local_node: String,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Consul {
|
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) {
|
let client = match (&config.client_cert, &config.client_key) {
|
||||||
(Some(client_cert), Some(client_key)) => {
|
(Some(client_cert), Some(client_key)) => {
|
||||||
let mut client_cert_buf = vec![];
|
let mut client_cert_buf = vec![];
|
||||||
|
@ -131,7 +129,6 @@ impl Consul {
|
||||||
client,
|
client,
|
||||||
url: config.addr.trim_end_matches('/').to_string(),
|
url: config.addr.trim_end_matches('/').to_string(),
|
||||||
kv_prefix: kv_prefix.to_string(),
|
kv_prefix: kv_prefix.to_string(),
|
||||||
local_node: local_node.into(),
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue