A decentralized music tracking and discovery platform built on AT Protocol 🎵

refactor: improve submit_listens function structure and readability

-8
-8
crates/scrobbler/src/listenbrainz/core/submit.rs
··· 41 }))); 42 } 43 Err(e) => { 44 - if !e.to_string().contains("error decoding response body") { 45 - println!("Non-retryable error: {}", e.to_string().red()); 46 - println!("{:#?}", payload); 47 - return Ok(HttpResponse::BadRequest().json(serde_json::json!({ 48 - "error": 4, 49 - "message": format!("Failed to parse listens: {}", e) 50 - }))); 51 - } 52 println!( 53 "Retryable error on attempt {}/{}: {}", 54 attempt,
··· 41 }))); 42 } 43 Err(e) => { 44 println!( 45 "Retryable error on attempt {}/{}: {}", 46 attempt,