From 3c4d17cf2840c643b8cd111ef775750cc5ae83b3 Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Sun, 27 Jul 2025 18:16:41 +0200 Subject: refactor: profile -> users --- crates/auth-service/src/state.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/auth-service/src/state.rs') 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, - pub profile_client: ProfileClient, + pub users_client: UsersServiceClient, } 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, )) -- cgit v1.2.3