Oops! migrate signature parity
This commit is contained in:
parent
b82670fdb2
commit
294eda5f95
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ use warp::{
|
|||
|
||||
#[inline]
|
||||
#[cfg(debug_assertions)]
|
||||
fn migrate(_db: &SqlitePool) {}
|
||||
async fn migrate(_db: &SqlitePool) {}
|
||||
|
||||
#[inline]
|
||||
#[cfg(not(debug_assertions))]
|
||||
|
@ -85,7 +85,7 @@ pub async fn routes(static_dir: &str) -> BoxedFilter<(Response,)> {
|
|||
let db = SqlitePool::connect(database_uri)
|
||||
.await
|
||||
.unwrap_or_else(|_| panic!("Failed to open SQLite DB: {}", database_uri));
|
||||
migrate(&db);
|
||||
migrate(&db).await;
|
||||
|
||||
let shorten_html = {
|
||||
let mut path = PathBuf::from(static_dir);
|
||||
|
|
Loading…
Reference in a new issue