diff options
Diffstat (limited to 'src/consul.rs')
-rw-r--r-- | src/consul.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/consul.rs b/src/consul.rs index 1b94dd0..6750ba0 100644 --- a/src/consul.rs +++ b/src/consul.rs @@ -79,7 +79,7 @@ impl Consul { pub fn new(url: &str, kv_prefix: &str, local_node: &str) -> Self { return Self { client: reqwest::Client::new(), - url: url.to_string(), + url: url.trim_end_matches('/').to_string(), kv_prefix: kv_prefix.to_string(), local_node: local_node.into(), }; |