Format code with cargo fmt
This commit is contained in:
parent
82f97deeb2
commit
54bba7e02a
1 changed files with 4 additions and 2 deletions
|
|
@ -164,8 +164,10 @@ impl ApiClient {
|
||||||
.read_to_end(&mut bytes)
|
.read_to_end(&mut bytes)
|
||||||
.map_err(|e| ApiError::RequestFailed(e.to_string()))?;
|
.map_err(|e| ApiError::RequestFailed(e.to_string()))?;
|
||||||
|
|
||||||
let _heartbeat_response = agent::HeartbeatResponse::decode(&bytes[..])
|
let _heartbeat_response =
|
||||||
.map_err(|e| ApiError::RequestFailed(format!("Heartbeat response decode error: {}", e)))?;
|
agent::HeartbeatResponse::decode(&bytes[..]).map_err(|e| {
|
||||||
|
ApiError::RequestFailed(format!("Heartbeat response decode error: {}", e))
|
||||||
|
})?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue