mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 02:46:29 +03:00
async file io
This commit is contained in:
@@ -36,7 +36,7 @@ async fn main() {
|
||||
let dir = tempdir().unwrap();
|
||||
let dbfile = dir.path().join("db.sqlite");
|
||||
println!("creating database {:?}", dbfile);
|
||||
let ctx = Context::new(Box::new(cb), "FakeOs".into(), dbfile)
|
||||
let ctx = Context::new(Box::new(cb), "FakeOs".into(), dbfile.into())
|
||||
.await
|
||||
.expect("Failed to create context");
|
||||
let running = Arc::new(RwLock::new(true));
|
||||
|
||||
Reference in New Issue
Block a user