@@ -2,7 +2,6 @@ use crate::commands::command_executor_service::{ChatMessage, CommandExecutorServ
22use twitch:: twitch_service:: { TwitchConfig , TwitchService } ;
33use crate :: db:: ProdDB ;
44use serde:: { Deserialize , Serialize } ;
5- use service_oauth:: oauth_service:: OAuthService ;
65use sqlx:: MySqlPool ;
76use std:: str:: FromStr ;
87use std:: sync:: { Arc , OnceLock , RwLock } ;
@@ -11,6 +10,8 @@ use tokio::runtime::Handle;
1110use tokio:: sync:: broadcast:: error:: RecvError ;
1211use url:: Url ;
1312use state:: { FullState , L1State , L2State , WebserverState } ;
13+ use crate :: service_oauth:: oauth_service:: OAuthService ;
14+ use crate :: session_service:: SessionService ;
1415
1516mod webserver_authentication;
1617mod axum;
@@ -42,8 +43,8 @@ pub async fn start() {
4243 panel_auth_twitch_client_id : "zmxjjn3xmncg8ewew6tjk08tub26bb" . to_string ( )
4344 } ) ,
4445 command_executor_service : CommandExecutorService :: new ( & prod_db) . await ,
45- oauth_service : Default :: default ( ) ,
46- session_service : Default :: default ( ) ,
46+ oauth_service : OAuthService :: new ( ) ,
47+ session_service : SessionService :: new ( ) ,
4748 prod_db,
4849 } ) ;
4950
0 commit comments