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, clear: false,
}, },
timer, timer,
).await; )
.await;
match reply { match reply {
Ok(Packet::CoreMgmtGetLogReply { last, length, data }) => { Ok(Packet::CoreMgmtGetLogReply { last, length, data }) => {
buffer.extend(&data[..length as usize]); buffer.extend(&data[..length as usize]);
@ -695,12 +696,7 @@ mod local_coremgmt {
Ok(()) Ok(())
} }
pub async fn config_write( pub async fn config_write(stream: &mut TcpStream, cfg: &Rc<Config>, key: &String, value: Vec<u8>) -> Result<()> {
stream: &mut TcpStream,
cfg: &Rc<Config>,
key: &String,
value: Vec<u8>,
) -> Result<()> {
let value = cfg.write(&key, value); let value = cfg.write(&key, value);
if value.is_ok() { if value.is_ok() {
debug!("write success"); debug!("write success");