remove unused user service in auth_state

This commit is contained in:
GW_MC
2025-12-18 22:21:15 +08:00
parent 86fb222d18
commit 66b29b96ee
2 changed files with 0 additions and 4 deletions

View File

@@ -153,7 +153,6 @@ fn get_app_state(
authentication: Arc::new(AuthenticationServiceImpl::new( authentication: Arc::new(AuthenticationServiceImpl::new(
settings.auth.jwt_secret.clone(), settings.auth.jwt_secret.clone(),
)), )),
user: Arc::new(UserServiceImpl::new(db_connection.clone())),
}, },
user: Arc::new(UserServiceImpl::new(db_connection.clone())), user: Arc::new(UserServiceImpl::new(db_connection.clone())),
}), }),

View File

@@ -38,14 +38,11 @@ pub struct AuthStrategy {
pub struct AuthState { pub struct AuthState {
pub strategy: AuthStrategy, pub strategy: AuthStrategy,
pub authentication: ServiceState<dyn AuthenticationService>, pub authentication: ServiceState<dyn AuthenticationService>,
pub user: ServiceState<dyn UserService>,
} }
pub struct AppService { pub struct AppService {
// #[allow(dead_code)] // TODO: remove when used
pub settings: ServiceState<dyn SettingsStore>, pub settings: ServiceState<dyn SettingsStore>,
pub auth_state: AuthState, pub auth_state: AuthState,
// #[allow(dead_code)] // TODO: remove when used
pub user: ServiceState<dyn UserService>, pub user: ServiceState<dyn UserService>,
} }