mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-06 09:44:21 +01:00
default impl for wait_for_completion + check for errors in completion there
This commit is contained in:
@@ -109,13 +109,6 @@ impl IO for SimulatorIO {
|
||||
Ok(file)
|
||||
}
|
||||
|
||||
fn wait_for_completion(&self, c: turso_core::Completion) -> Result<()> {
|
||||
while !c.is_completed() {
|
||||
self.run_once()?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn run_once(&self) -> Result<()> {
|
||||
if self.fault.get() {
|
||||
self.nr_run_once_faults
|
||||
|
||||
Reference in New Issue
Block a user