Skip to content

Commit

Permalink
feat: try 10 second updates for apple music
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Dec 29, 2024
1 parent 3ff72ea commit 41c05e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/apis/applemusic/applemusic.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ func Setup(router *chi.Mux) {
applemusicCache := cache.New("applemusic", data)
router.Get("/applemusic", applemusicCache.ServeHTTP())
router.Handle("/applemusic/ws", applemusicCache.ServeWS())
go applemusicCache.UpdatePeriodically(cacheUpdate, 30*time.Second)
go applemusicCache.UpdatePeriodically(cacheUpdate, 10*time.Second)
lumber.Done("setup apple music cache")
}

0 comments on commit 41c05e4

Please sign in to comment.