mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
windows complete completion
This commit is contained in:
@@ -80,12 +80,14 @@ impl File for WindowsFile {
|
||||
let buf = buffer.borrow();
|
||||
let buf = buf.as_slice();
|
||||
file.write_all(buf)?;
|
||||
c.complete(buffer.borrow().len() as i32);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn sync(&self, c: Rc<Completion>) -> Result<()> {
|
||||
let mut file = self.file.borrow_mut();
|
||||
file.sync_all().map_err(|err| LimboError::IOError(err))?;
|
||||
c.complete(0);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user