diff options
author | rtkay123 <dev@kanjala.com> | 2025-07-27 18:16:41 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-07-27 18:16:41 +0200 |
commit | 3c4d17cf2840c643b8cd111ef775750cc5ae83b3 (patch) | |
tree | 2b7d25b24d94141a6d9255426d4f973cced5d278 /crates/auth-service/src/state.rs | |
parent | e26d87f4fa18999c6bcfbcf32cfa85adab11acdd (diff) | |
download | sellershut-3c4d17cf2840c643b8cd111ef775750cc5ae83b3.tar.bz2 sellershut-3c4d17cf2840c643b8cd111ef775750cc5ae83b3.zip |
refactor: profile -> users
Diffstat (limited to 'crates/auth-service/src/state.rs')
-rw-r--r-- | crates/auth-service/src/state.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/auth-service/src/state.rs b/crates/auth-service/src/state.rs index 5905948..07bfda9 100644 --- a/crates/auth-service/src/state.rs +++ b/crates/auth-service/src/state.rs @@ -1,6 +1,6 @@ use std::{ops::Deref, sync::Arc}; -use sellershut_core::profile::profile_client::ProfileClient; +use sellershut_core::users::users_service_client::UsersServiceClient; use sqlx::PgPool; use stack_up::Configuration; use tokio::task::JoinHandle; @@ -39,7 +39,7 @@ pub struct AppState { pub discord_client: OauthClient, pub http_client: reqwest::Client, pub session_store: CachingSessionStore<MokaStore, PostgresStore>, - pub profile_client: ProfileClient<Intercepted>, + pub users_client: UsersServiceClient<Intercepted>, } impl AppState { @@ -68,7 +68,7 @@ impl AppState { .await .inspect_err(|e| error!("could not connect to profile service: {e}"))?; - let profile_client = ProfileClient::with_interceptor(channel, MyInterceptor); + let users_client = UsersServiceClient::with_interceptor(channel, MyInterceptor); Ok(( AppHandle(Arc::new(Self { @@ -77,7 +77,7 @@ impl AppState { discord_client, http_client: reqwest::Client::new(), session_store: store, - profile_client, + users_client, })), deletion_task, )) |