From dd32b6fe3fcde2c37e7091325c36c19e0d31aab5 Mon Sep 17 00:00:00 2001 From: occheung Date: Mon, 26 Aug 2024 11:39:58 +0800 Subject: [PATCH] cargo fmt --- src/runtime/src/mgmt.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/runtime/src/mgmt.rs b/src/runtime/src/mgmt.rs index 2198f76..2c540ab 100644 --- a/src/runtime/src/mgmt.rs +++ b/src/runtime/src/mgmt.rs @@ -163,8 +163,9 @@ mod remote_coremgmt { clear: false, }, timer, - ).await; - + ) + .await; + match reply { Ok(Packet::CoreMgmtGetLogReply { last, length, data }) => { buffer.extend(&data[..length as usize]); @@ -695,12 +696,7 @@ mod local_coremgmt { Ok(()) } - pub async fn config_write( - stream: &mut TcpStream, - cfg: &Rc, - key: &String, - value: Vec, - ) -> Result<()> { + pub async fn config_write(stream: &mut TcpStream, cfg: &Rc, key: &String, value: Vec) -> Result<()> { let value = cfg.write(&key, value); if value.is_ok() { debug!("write success");