aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/consul_services.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc/consul_services.rs')
-rw-r--r--src/rpc/consul_services.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rpc/consul_services.rs b/src/rpc/consul_services.rs
index 461bb195..928c7691 100644
--- a/src/rpc/consul_services.rs
+++ b/src/rpc/consul_services.rs
@@ -67,7 +67,10 @@ impl ConsulServiceDiscovery {
if let Some(token) = &config.consul_http_token {
let mut headers = reqwest::header::HeaderMap::new();
- headers.insert("x-consul-token", reqwest::header::HeaderValue::from_str(&token)?);
+ headers.insert(
+ "x-consul-token",
+ reqwest::header::HeaderValue::from_str(&token)?,
+ );
builder = builder.default_headers(headers);
}