cargo fmt

This commit is contained in:
Roberto Hidalgo
2023-05-08 13:10:23 -06:00
parent 02ba9016ab
commit 4d6e6fc155
2 changed files with 14 additions and 4 deletions
+4 -1
View File
@@ -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);
}