diff options
author | Roberto Hidalgo <un@rob.mx> | 2023-05-08 13:10:23 -0600 |
---|---|---|
committer | Roberto Hidalgo <un@rob.mx> | 2023-05-22 08:57:15 -0600 |
commit | 4d6e6fc155bb263a04f7f6dfbb77933f5d2d0b2e (patch) | |
tree | c19c3e9bf16a9151808ba5f000f4bfde97f1be20 /src/rpc/consul_services.rs | |
parent | 02ba9016ab6eca5bb4964549de002573d5a3a07a (diff) | |
download | garage-4d6e6fc155bb263a04f7f6dfbb77933f5d2d0b2e.tar.gz garage-4d6e6fc155bb263a04f7f6dfbb77933f5d2d0b2e.zip |
cargo fmt
Diffstat (limited to 'src/rpc/consul_services.rs')
-rw-r--r-- | src/rpc/consul_services.rs | 5 |
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); } |