cargo fmt

This commit is contained in:
occheung 2024-08-26 11:39:58 +08:00
parent 246ba6795e
commit dd32b6fe3f
1 changed files with 4 additions and 8 deletions

View File

@ -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<Config>,
key: &String,
value: Vec<u8>,
) -> Result<()> {
pub async fn config_write(stream: &mut TcpStream, cfg: &Rc<Config>, key: &String, value: Vec<u8>) -> Result<()> {
let value = cfg.write(&key, value);
if value.is_ok() {
debug!("write success");