swarm-wire: take notices's wire types, fmt the moved imports
This commit is contained in:
parent
e111807f59
commit
fc72bea151
1 changed files with 72 additions and 86 deletions
|
|
@ -141,10 +141,9 @@ impl AgentStatusReader {
|
|||
else {
|
||||
continue;
|
||||
};
|
||||
let payload = match serde_json::from_slice::<
|
||||
swarm_wire::agent_status::AgentStatus,
|
||||
>(&entry.value)
|
||||
{
|
||||
let payload = match serde_json::from_slice::<swarm_wire::agent_status::AgentStatus>(
|
||||
&entry.value,
|
||||
) {
|
||||
Ok(status) => serde_json::to_value(status).ok(),
|
||||
Err(e) => {
|
||||
tracing::warn!(
|
||||
|
|
|
|||
Loading…
Reference in a new issue