Refactor more stuff
This commit is contained in:
parent
5a7b2de0ea
commit
9394a1ae52
15 changed files with 167 additions and 86 deletions
emgauwa-lib/src/db
|
@ -40,7 +40,10 @@ pub async fn init(db: &str) -> Pool<Sqlite> {
|
|||
|
||||
run_migrations(&pool).await;
|
||||
|
||||
let mut pool_conn = pool.acquire().await.unwrap();
|
||||
let mut pool_conn = pool
|
||||
.acquire()
|
||||
.await
|
||||
.expect("Failed to acquire pool connection");
|
||||
|
||||
DbSchedule::get_on(&mut pool_conn)
|
||||
.await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue