From a6daed722fd276552a9bd2ad6a42ad486e6932ab Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Sun, 7 Jan 2024 20:19:58 +0000 Subject: [PATCH] chore: remove debug prints --- crates/cashu-sdk/src/client/minreq_client.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/crates/cashu-sdk/src/client/minreq_client.rs b/crates/cashu-sdk/src/client/minreq_client.rs index 71dfb776d..d40d18a3a 100644 --- a/crates/cashu-sdk/src/client/minreq_client.rs +++ b/crates/cashu-sdk/src/client/minreq_client.rs @@ -36,13 +36,10 @@ impl Client for HttpClient { /// Get Keyset Keys [NUT-01] async fn get_mint_keyset(&self, mint_url: Url, keyset_id: Id) -> Result { let url = join_url(mint_url, &["v1", "keys", &keyset_id.to_string()])?; - println!("{url}"); let keys = minreq::get(url).send()?.json::()?; - println!("{keys:?}"); // let keys: KeysResponse = serde_json::from_value(keys)?; // // serde_json::from_str(&keys.to_string())?; - println!("{keys:?}"); Ok(keys.keysets[0].clone()) } @@ -180,8 +177,6 @@ impl Client for HttpClient { let res = minreq::post(url).with_json(&split_request)?.send()?; - println!("{:?}", res.json::()); - let response: Result = serde_json::from_value(res.json::()?.clone()); @@ -216,18 +211,13 @@ impl Client for HttpClient { async fn get_mint_info(&self, mint_url: Url) -> Result { let url = join_url(mint_url, &["v1", "info"])?; - println!("{}", url); - let res = minreq::get(url).send()?.json::()?; let response: Result = serde_json::from_value(res.clone()); match response { Ok(res) => Ok(res), - Err(_) => { - println!("{:?}", response); - Err(Error::from_json(&res.to_string())?) - } + Err(_) => Err(Error::from_json(&res.to_string())?), } } }