From 844c083ee4c3eca10b81f2788a22a43af56459fe Mon Sep 17 00:00:00 2001 From: occheung Date: Tue, 20 Aug 2024 16:49:10 +0800 Subject: [PATCH] cargo fmt --- src/runtime/src/mgmt.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/runtime/src/mgmt.rs b/src/runtime/src/mgmt.rs index 9cd0bf6..c85bf7a 100644 --- a/src/runtime/src/mgmt.rs +++ b/src/runtime/src/mgmt.rs @@ -153,7 +153,10 @@ mod remote_coremgmt { aux_mutex, linkno, routing_table, - &Packet::CoreMgmtGetLogRequest { destination, clear: false }, + &Packet::CoreMgmtGetLogRequest { + destination, + clear: false, + }, timer, ) .await? @@ -228,12 +231,17 @@ mod remote_coremgmt { aux_mutex, linkno, routing_table, - &Packet::CoreMgmtGetLogRequest { destination, clear: true }, + &Packet::CoreMgmtGetLogRequest { + destination, + clear: true, + }, timer, - ).await { + ) + .await + { Ok(Packet::CoreMgmtGetLogReply { last, length, data }) => { write_chunk(stream, &data[..length as usize]).await?; - }, + } _ => return Err(drtio::Error::UnexpectedReply.into()), }