mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-22 19:41:03 +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() {
|
fn main() {
|
||||||
let pool = init_pool();
|
let pool = init_pool().expect("Couldn't intialize database pool");
|
||||||
rocket::ignite()
|
rocket::ignite()
|
||||||
.mount("/", routes![
|
.mount("/", routes![
|
||||||
routes::blogs::paginated_details,
|
routes::blogs::paginated_details,
|
||||||
|
|
Loading…
Reference in a new issue