From 77aa473d0b21c29db8787e9ce50ad51c3fa1329b Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Sun, 21 Sep 2025 10:15:26 +0300 Subject: [PATCH] refactor: improve submit_listens function structure and readability --- crates/scrobbler/src/listenbrainz/core/submit.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/crates/scrobbler/src/listenbrainz/core/submit.rs b/crates/scrobbler/src/listenbrainz/core/submit.rs index 1783a92c..2985ca99 100644 --- a/crates/scrobbler/src/listenbrainz/core/submit.rs +++ b/crates/scrobbler/src/listenbrainz/core/submit.rs @@ -41,14 +41,6 @@ pub async fn submit_listens( }))); } Err(e) => { - if !e.to_string().contains("error decoding response body") { - println!("Non-retryable error: {}", e.to_string().red()); - println!("{:#?}", payload); - return Ok(HttpResponse::BadRequest().json(serde_json::json!({ - "error": 4, - "message": format!("Failed to parse listens: {}", e) - }))); - } println!( "Retryable error on attempt {}/{}: {}", attempt, -- 2.51.2