Skip to content

Commit

Permalink
feat: steam updates every 5 minutes
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Jul 30, 2024
1 parent 2fc78d5 commit 0396cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/apis/steam/steam.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ func Setup(router *chi.Mux) {
games := fetchRecentlyPlayedGames()
steamCache := cache.NewCache("steam", games)
router.Get("/steam/cache", steamCache.ServeHTTP())
go steamCache.StartPeriodicUpdate(fetchRecentlyPlayedGames, 10*time.Minute)
go steamCache.StartPeriodicUpdate(fetchRecentlyPlayedGames, 5*time.Minute)
lumber.Success("setup steam cache")
}

0 comments on commit 0396cfa

Please sign in to comment.