tangled
alpha
login
or
join now
tsiry-sandratraina.com
/
rocksky
forked from
rocksky.app/rocksky
3
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
3
fork
atom
overview
issues
1
pulls
pipelines
Increase ListenBrainz cache timeout to 30s
tsiry-sandratraina.com
1 month ago
62892efd
cee06329
+2
-2
1 changed file
expand all
collapse all
unified
split
crates
scrobbler
src
scrobbler.rs
+2
-2
crates/scrobbler/src/scrobbler.rs
···
579
579
return Ok(());
580
580
}
581
581
582
582
-
// set cache for 5 seconds to avoid duplicate scrobbles
582
582
+
// set cache for 60 seconds to avoid duplicate scrobbles
583
583
cache.setex(
584
584
&format!("listenbrainz:cache:{}:{}:{}", artist, track, did),
585
585
"1",
586
586
-
5,
586
586
+
30, // 30 seconds
587
587
)?;
588
588
589
589
let spofity_tokens = repo::spotify_token::get_spotify_tokens(pool, 100).await?;