pddb sync does not require the handle to be mutable

This commit is contained in:
bunnie 2022-06-06 18:25:33 +08:00
parent 73f3ef827c
commit 66dc39c2a8

View file

@ -478,7 +478,7 @@ impl Pddb {
}
}
pub fn sync(&mut self) -> Result<()> {
pub fn sync(&self) -> Result<()> {
let response = send_message(
self.conn,
Message::new_blocking_scalar(Opcode::WriteKeyFlush.to_usize().unwrap(), 0, 0, 0, 0)