From 053499b541e52b0ed93effd2065e217cc2ce90b2 Mon Sep 17 00:00:00 2001 From: Evan <0xIchigo@protonmail.com> Date: Wed, 24 Apr 2024 14:59:52 -0400 Subject: [PATCH] Remove Commented Code --- src/request_handler.rs | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/request_handler.rs b/src/request_handler.rs index dc5b413..86b4883 100644 --- a/src/request_handler.rs +++ b/src/request_handler.rs @@ -32,36 +32,7 @@ impl RequestHandler { let response: Response = self.send_request(request_builder).await?; self.handle_response(response).await } - - // async fn handle_response Deserialize<'de>>(&self, response: Response) -> Result { - // let status: StatusCode = response.status(); - // let path: String = response.url().path().to_string(); - // let body_text = response.text().await.unwrap_or_default(); - - // println!("Response status: {}, Body: {}", status, body_text); - - // if status.is_success() { - // serde_json::from_str::(&body_text).map_err(|e| HeliusError::from(e)) - // } else { - // Err(HeliusError::from_response_status(status, path, body_text)) - // } - // } - // async fn handle_response Deserialize<'de>>(&self, response: Response) -> Result { - // let status: StatusCode = response.status(); - // let path: String = response.url().path().to_string(); - // let body_text: String = response.text().await.unwrap_or_default(); - - // println!("Response status: {}, Body: {}", status, body_text); - // if status.is_success() { - // serde_json::from_str::(&body_text).map_err(|e| { - // eprintln!("Failed to deserialize response: {}", e); - // HeliusError::from(e) - // }) - // } else { - // Err(HeliusError::from_response_status(status, path, body_text)) - // } - // } async fn handle_response Deserialize<'de>>(&self, response: Response) -> Result { let status: StatusCode = response.status(); let path: String = response.url().path().to_string();