mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-20 18:12:15 +00:00
Add hostname to node info
This commit is contained in:
+5
-4
@@ -231,10 +231,11 @@ impl RpcHttpClient {
|
||||
let status = resp.status();
|
||||
let body = hyper::body::to_bytes(resp.into_body()).await?;
|
||||
match rmp_serde::decode::from_read::<_, Result<M, String>>(body.into_buf()) {
|
||||
Err(e) =>
|
||||
Err(Error::RPCError(format!("Invalid reply"), status)),
|
||||
Ok(Err(e)) =>
|
||||
Err(Error::RPCError(e, status)),
|
||||
Err(e) => Err(Error::RPCError(
|
||||
format!("Invalid reply (deserialize error: {})", e),
|
||||
status,
|
||||
)),
|
||||
Ok(Err(e)) => Err(Error::RPCError(e, status)),
|
||||
Ok(Ok(x)) => Ok(x),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user