Wrap database for dbtool
This commit is contained in:
parent
a2a90519e1
commit
fd0fdb5f68
@ -43,7 +43,9 @@ async fn main() -> Result<()> {
|
|||||||
// Load database
|
// Load database
|
||||||
let db = Database::init(config).await?;
|
let db = Database::init(config).await?;
|
||||||
|
|
||||||
match dbtool::start(&db).await {
|
let wrapper = DatabaseWrapper { db };
|
||||||
|
|
||||||
|
match dbtool::start(&wrapper.db).await {
|
||||||
Ok(_) => (),
|
Ok(_) => (),
|
||||||
Err(e) => error!("{e}")
|
Err(e) => error!("{e}")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user