From e63e1f975eaaae4693d883d24e6a79db2492034c Mon Sep 17 00:00:00 2001 From: asonix Date: Thu, 27 Jul 2023 13:39:31 -0500 Subject: [PATCH] Use verify spawner in routes --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a2d933a..7832880 100644 --- a/src/main.rs +++ b/src/main.rs @@ -290,7 +290,9 @@ async fn do_server_main( let app = App::new() .app_data(web::Data::new(db.clone())) .app_data(web::Data::new(state.clone())) - .app_data(web::Data::new(requests.clone())) + .app_data(web::Data::new( + requests.clone().spawner(verify_spawner.clone()), + )) .app_data(web::Data::new(actors.clone())) .app_data(web::Data::new(config.clone())) .app_data(web::Data::new(job_server))