From 62892efd6ad3b51e2371a5fd7f80964cde615ee2 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Sun, 8 Feb 2026 07:44:10 +0300 Subject: [PATCH] Increase ListenBrainz cache timeout to 30s --- crates/scrobbler/src/scrobbler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/scrobbler/src/scrobbler.rs b/crates/scrobbler/src/scrobbler.rs index 83de297b..da66135b 100644 --- a/crates/scrobbler/src/scrobbler.rs +++ b/crates/scrobbler/src/scrobbler.rs @@ -579,11 +579,11 @@ pub async fn scrobble_listenbrainz( return Ok(()); } - // set cache for 5 seconds to avoid duplicate scrobbles + // set cache for 60 seconds to avoid duplicate scrobbles cache.setex( &format!("listenbrainz:cache:{}:{}:{}", artist, track, did), "1", - 5, + 30, // 30 seconds )?; let spofity_tokens = repo::spotify_token::get_spotify_tokens(pool, 100).await?; -- 2.51.2