mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-30 06:24:21 +01:00
Merge pull request #75 from heyrutvik/wait-for-completion
wait for the read completion
This commit is contained in:
@@ -31,7 +31,7 @@ impl IO for LinuxIO {
|
||||
fn run_once(&self) -> Result<()> {
|
||||
trace!("run_once()");
|
||||
let mut ring = self.ring.borrow_mut();
|
||||
ring.submit_and_wait(0)?;
|
||||
ring.submit_and_wait(1)?;
|
||||
loop {
|
||||
match ring.completion().next() {
|
||||
Some(cqe) => {
|
||||
|
||||
Reference in New Issue
Block a user