From be3e50d31a8e4cb381cb08be6600c92a1d381e56 Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Sun, 22 Aug 2021 16:30:25 +0200 Subject: [PATCH] Update actix libraries --- src/infra/tcp_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/infra/tcp_server.rs b/src/infra/tcp_server.rs index f474dab..0861702 100644 --- a/src/infra/tcp_server.rs +++ b/src/infra/tcp_server.rs @@ -49,11 +49,11 @@ fn http_config( ) where Backend: TcpBackendHandler + BackendHandler + LoginHandler + OpaqueHandler + 'static, { - cfg.app_data(AppState:: { + cfg.app_data(web::Data::new(AppState:: { backend_handler, jwt_key: Hmac::new_varkey(jwt_secret.as_bytes()).unwrap(), jwt_blacklist: RwLock::new(jwt_blacklist), - }) + })) // Serve index.html and main.js, and default to index.html. .route( "/{filename:(index\\.html|main\\.js)?}",