mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-22 11:31:01 +00:00
Rocket should manage DbConn, not Option<DbConn>
Otherwise it fails when using DbConn as a request guard
This commit is contained in:
parent
4f84b2a3ed
commit
3b7842d040
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ fn init_pool() -> Option<DbPool> {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
let pool = init_pool();
|
||||
let pool = init_pool().expect("Couldn't intialize database pool");
|
||||
rocket::ignite()
|
||||
.mount("/", routes![
|
||||
routes::blogs::paginated_details,
|
||||
|
|
Loading…
Reference in a new issue