Don't create two DB pools in todo example.

This commit is contained in:
Sergio Benitez 2017-06-01 23:03:08 -07:00
parent a6c4d053ad
commit 6f4c8b1377
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ fn rocket() -> (Rocket, Option<db::Conn>) {
};
let rocket = rocket::ignite()
.manage(db::init_pool())
.manage(pool)
.mount("/", routes![index, static_files::all])
.mount("/todo/", routes![new, toggle, delete])
.attach(Template::fairing());