From 10283bb777f2f95a6d4965d0e82ccc7889847cb8 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 13 Dec 2023 20:47:00 +0300 Subject: [PATCH] gql-fix-2 --- src/data.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/data.rs b/src/data.rs index 37b52a9..c88b870 100644 --- a/src/data.rs +++ b/src/data.rs @@ -88,9 +88,6 @@ pub async fn get_id_by_token(token: &str) -> Result> { .send() .await?; - let response_text = response.text().await?; - println!("Server Response: {}", response_text); - if response.status().is_success() { let r: HashMap = response.json().await?; let user_id = r @@ -120,11 +117,6 @@ pub async fn get_id_by_token(token: &str) -> Result> { format!("Request failed with status: {}", response.status()), ))) } - - Err(Box::new(std::io::Error::new( - std::io::ErrorKind::Other, - "No user ID found in the response", - ))) } async fn get_shout_followers(shout_id: &str) -> Result, Box> {