summaryrefslogtreecommitdiffstats
path: root/crates/auth-service/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/auth-service/src/state.rs')
-rw-r--r--crates/auth-service/src/state.rs8
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,
))