From f0f47315a1607ff4dfbfc0320722b8f6043c11f2 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Mon, 14 Aug 2023 00:02:30 +0200 Subject: [PATCH] Rename get to get_user --- src/api/users/users.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/api/users/users.rs b/src/api/users/users.rs index 43e4dfd..b76f4b4 100644 --- a/src/api/users/users.rs +++ b/src/api/users/users.rs @@ -21,7 +21,7 @@ impl UserMeta { /// # Reference /// See and /// - pub async fn get(&mut self, id: Option<&String>) -> ChorusResult { + pub async fn get_user(&mut self, id: Option<&String>) -> ChorusResult { User::get(self, id).await } @@ -99,11 +99,7 @@ impl User { match chorus_request.send_request(user).await { Ok(result) => { let result_text = result.text().await.unwrap(); - let api_user = serde_json::from_str::(&result_text).unwrap(); - user.gateway - .observe(Arc::new(RwLock::new(api_user.clone()))) - .await; - Ok(api_user) + Ok(serde_json::from_str::(&result_text).unwrap()) } Err(e) => Err(e), }