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

Add 5s timeout to Spotify search calls

+6 -4
+6 -4
crates/scrobbler/src/scrobbler.rs
··· 208 208 209 209 let result = retry_spotify_call( 210 210 || async { 211 - spotify_client 212 - .search(&format!( 211 + tokio::time::timeout( 212 + std::time::Duration::from_secs(5), 213 + spotify_client.search(&format!( 213 214 r#"track:"{}" artist:"{}""#, 214 215 scrobble.track, scrobble.artist 215 - )) 216 - .await 216 + )), 217 + ) 218 + .await? 217 219 }, 218 220 "search", 219 221 )