aboutsummaryrefslogtreecommitdiff
path: root/src/rpc_client.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-12 19:18:31 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-12 19:18:31 +0200
commitc788fc9f9e2c9128ea0dd5f28c1bafe8ba3b369c (patch)
tree30c9e34b979bd8d38ef93e8371a4fea087556e72 /src/rpc_client.rs
parentd2814b5c3374f8b99a81dbb9fa3614c875cfc5e6 (diff)
downloadgarage-c788fc9f9e2c9128ea0dd5f28c1bafe8ba3b369c.tar.gz
garage-c788fc9f9e2c9128ea0dd5f28c1bafe8ba3b369c.zip
Cleanup
Diffstat (limited to 'src/rpc_client.rs')
-rw-r--r--src/rpc_client.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpc_client.rs b/src/rpc_client.rs
index 255eb958..6f897a90 100644
--- a/src/rpc_client.rs
+++ b/src/rpc_client.rs
@@ -109,7 +109,6 @@ impl RpcClient {
}
config.set_single_client_cert([&node_certs[..], &ca_certs[..]].concat(), node_key)?;
- // config.dangerous().set_certificate_verifier(Arc::new(tls_util::NoHostnameCertVerifier));
let connector =
tls_util::HttpsConnectorFixedDnsname::<HttpConnector>::new(config, "garage");
@@ -143,7 +142,7 @@ impl RpcClient {
let resp = tokio::time::timeout(timeout, resp_fut)
.await?
.map_err(|e| {
- eprintln!("RPC client error: {}", e);
+ eprintln!("RPC HTTP client error when connecting to {}: {}", to_addr, e);
e
})?;