diff options
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server.rs b/src/server.rs index c5a59f5..ad163e1 100644 --- a/src/server.rs +++ b/src/server.rs @@ -169,7 +169,9 @@ pub fn start(conn: diesel::PgConnection, db_url: &str, base_url: &str) { let importer_pool = ThreadPool::with_name("import".to_string(), importer::WORKERS); let tx = importer::run(importer_pool.clone()); - tx.send(importer::Command::Quit).expect("send"); + for i in 0..100 { + tx.send(importer::Command::Quit).expect("send"); + } rocket::custom(config) .manage(params) |