From 91765d2c84025404c5af38126ca5cf5034411115 Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Sat, 23 Sep 2017 16:45:38 +0200 Subject: [PATCH] Makes request rate limited per second, not microseconds --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 84a2885..89fb145 100644 --- a/main.go +++ b/main.go @@ -78,7 +78,7 @@ func newAppData(opts Options) (*appData, error) { res.db = OpenAlbumDatabase(filepath.Join(basepath, "db")) res.getter = &AlbumDescriptionGetter{ - getter: NewRateLimitedGetter(10, 10), + getter: NewRateLimitedGetter(10, 10*time.Second), } res.cover = NewAlbumCoverCache(filepath.Join(basepath, "covers"), opts.MaxRequests, opts.RequestWindow)