aboutsummaryrefslogtreecommitdiff
path: root/src/rpc_client.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-16 19:28:02 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-16 19:28:02 +0200
commit2f3b1a072f63330c101d4e2703a24e0f26b98674 (patch)
treebfd11768154f81d8904a932f17f2cf5fe36038b1 /src/rpc_client.rs
parent2832be4396d2ed40bfb0bd4358bc14ef7432decb (diff)
downloadgarage-2f3b1a072f63330c101d4e2703a24e0f26b98674.tar.gz
garage-2f3b1a072f63330c101d4e2703a24e0f26b98674.zip
WIP
Diffstat (limited to 'src/rpc_client.rs')
-rw-r--r--src/rpc_client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc_client.rs b/src/rpc_client.rs
index bb0ca56c..a1c5dde0 100644
--- a/src/rpc_client.rs
+++ b/src/rpc_client.rs
@@ -84,7 +84,7 @@ pub async fn rpc_call(
let status = sys.status.borrow().clone();
match status.nodes.get(to) {
Some(status) => status.addr.clone(),
- None => return Err(Error::Message(format!("Peer ID not found"))),
+ None => return Err(Error::Message(format!("Peer ID not found: {:?}", to))),
}
};
sys.rpc_client.call(&addr, msg, timeout).await