From 0d857661f2cf1fb59a59dcaf216c81a673dd0436 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Thu, 7 Nov 2024 09:57:24 +0100 Subject: [PATCH] windows complete completion --- core/io/windows.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/io/windows.rs b/core/io/windows.rs index 0968ae92f..bbd44e0d3 100644 --- a/core/io/windows.rs +++ b/core/io/windows.rs @@ -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) -> Result<()> { let mut file = self.file.borrow_mut(); file.sync_all().map_err(|err| LimboError::IOError(err))?; + c.complete(0); Ok(()) } }