remove local_node

This commit is contained in:
Alex 2022-12-07 14:21:02 +01:00
parent 0a641cae96
commit e678452d81
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -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(),
})
}