From 769ffcbe2bd1d268f5214c393a7817faf8944162 Mon Sep 17 00:00:00 2001 From: Determinant Date: Tue, 16 Jun 2020 22:01:33 -0400 Subject: allow using customized aiomgr --- examples/demo1.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/demo1.rs b/examples/demo1.rs index e214177..d51801d 100644 --- a/examples/demo1.rs +++ b/examples/demo1.rs @@ -32,7 +32,7 @@ fn main() { let mut loader = WALLoader::new(); loader.file_nbit(9).block_nbit(8); - let store = WALStoreAIO::new(&wal_dir, true, recover); + let store = WALStoreAIO::new(&wal_dir, true, recover, None).unwrap(); let mut wal = loader.load(store).unwrap(); for _ in 0..3 { test( @@ -50,7 +50,7 @@ fn main() { ); } - let store = WALStoreAIO::new(&wal_dir, false, recover); + let store = WALStoreAIO::new(&wal_dir, false, recover, None).unwrap(); let mut wal = loader.load(store).unwrap(); for _ in 0..3 { test( @@ -64,7 +64,7 @@ fn main() { ); } - let store = WALStoreAIO::new(&wal_dir, false, recover); + let store = WALStoreAIO::new(&wal_dir, false, recover, None).unwrap(); let mut wal = loader.load(store).unwrap(); for _ in 0..3 { let mut ids = Vec::new(); -- cgit v1.2.3-70-g09d2