mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
Resultify sql.open()
This commit is contained in:
@@ -136,10 +136,7 @@ impl Context {
|
||||
let ctx = Context {
|
||||
inner: Arc::new(inner),
|
||||
};
|
||||
ensure!(
|
||||
ctx.sql.open(&ctx, &ctx.dbfile, false).await,
|
||||
"Failed opening sqlite database"
|
||||
);
|
||||
ctx.sql.open(&ctx, &ctx.dbfile, false).await?;
|
||||
|
||||
Ok(ctx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user