Wrap database for dbtool

This commit is contained in:
0xf8 2023-06-21 16:48:27 -04:00
parent a2a90519e1
commit fd0fdb5f68
Signed by: 0xf8
GPG Key ID: 446580D758689584

View File

@ -43,7 +43,9 @@ async fn main() -> Result<()> {
// Load database
let db = Database::init(config).await?;
match dbtool::start(&db).await {
let wrapper = DatabaseWrapper { db };
match dbtool::start(&wrapper.db).await {
Ok(_) => (),
Err(e) => error!("{e}")
}