From b184ab04b40aac4197d6242e1cda7112b1af82eb Mon Sep 17 00:00:00 2001 From: Evan <0xIchigo@protonmail.com> Date: Sat, 18 May 2024 02:28:35 -0400 Subject: [PATCH] Remove Debug Logs --- src/enhanced_transactions.rs | 2 -- src/request_handler.rs | 7 ------- src/rpc_client.rs | 7 +------ src/webhook.rs | 2 -- 4 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/enhanced_transactions.rs b/src/enhanced_transactions.rs index 1fdaab3..f6c1cab 100644 --- a/src/enhanced_transactions.rs +++ b/src/enhanced_transactions.rs @@ -18,8 +18,6 @@ impl Helius { "{}v0/transactions?api-key={}", self.config.endpoints.api, self.config.api_key ); - - println!("{}", url); let parsed_url: Url = Url::parse(&url).expect("Failed to parse URL"); self.rpc_client diff --git a/src/request_handler.rs b/src/request_handler.rs index 21fc935..0bcee88 100644 --- a/src/request_handler.rs +++ b/src/request_handler.rs @@ -65,9 +65,6 @@ impl RequestHandler { } let response: Response = self.send_request(request_builder).await?; - - print!("RESPONSE {:?}", response); - self.handle_response(response).await } @@ -89,10 +86,6 @@ impl RequestHandler { let path: String = response.url().path().to_string(); let body_text: String = response.text().await.unwrap_or_default(); - println!("STATUS {}", status); - println!("PATH {}", path); - println!("BODY {}", body_text); - if status.is_success() { match serde_json::from_str::(&body_text) { Ok(data) => Ok(data), diff --git a/src/rpc_client.rs b/src/rpc_client.rs index 4e27f9f..57713e6 100644 --- a/src/rpc_client.rs +++ b/src/rpc_client.rs @@ -84,14 +84,9 @@ impl RpcClient { let base_url: String = format!("{}/?api-key={}", self.config.endpoints.rpc, self.config.api_key); let url: Url = Url::parse(&base_url).expect("Failed to parse URL"); - println!("{}", base_url); - println!("{}", url); - let rpc_request: RpcRequest = RpcRequest::new(method.to_string(), request); - println!("Serialized Request: {:?}", serde_json::to_string(&rpc_request)); - let rpc_response: RpcResponse = self.handler.send(Method::POST, url, Some(&rpc_request)).await?; - println!("RPCRESPONSE {:?}", rpc_response.result); + Ok(rpc_response.result) } diff --git a/src/webhook.rs b/src/webhook.rs index 96d0eda..d801418 100644 --- a/src/webhook.rs +++ b/src/webhook.rs @@ -17,9 +17,7 @@ impl Helius { "{}v0/webhooks/?api-key={}", self.config.endpoints.api, self.config.api_key ); - let parsed_url: Url = Url::parse(&url).expect("Failed to parse URL"); - println!("PARSED URL: {}", parsed_url); self.rpc_client .handler