1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

deregister server socket on shutdown

This commit is contained in:
Nikolay Kim
2018-02-16 09:42:15 -08:00
parent 3c95823e53
commit 3e3d3279b8
2 changed files with 13 additions and 2 deletions

View File

@ -44,6 +44,7 @@ fn main() {
let _ = env_logger::init();
let sys = actix::System::new("r2d2-example");
// r2d2 pool
let manager = SqliteConnectionManager::file("test.db");
let pool = r2d2::Pool::new(manager).unwrap();