Skip to content

Commit

Permalink
feat: try fetching apple music stats every 30 seconds
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Dec 2, 2024
1 parent 881fcaf commit c3303e7
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 @@ -50,6 +50,6 @@ func Setup(router *chi.Mux) {

applemusicCache := cache.NewCache("applemusic", data)
router.Get("/applemusic/cache", applemusicCache.ServeHTTP())
go applemusicCache.StartPeriodicUpdate(cacheUpdate, 1*time.Minute)
go applemusicCache.StartPeriodicUpdate(cacheUpdate, 30*time.Second)
lumber.Done("setup apple music cache")
}

0 comments on commit c3303e7

Please sign in to comment.