Make thing beeing able to be modified

This commit is contained in:
2017-09-23 17:10:50 +02:00
parent d901943758
commit 5569c4444b
2 changed files with 4 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ func newAppData(opts Options) (*appData, error) {
res.db = OpenAlbumDatabase(filepath.Join(basepath, "db"))
res.getter = &AlbumDescriptionGetter{
getter: NewRateLimitedGetter(10, 10*time.Second),
getter: NewRateLimitedGetter(opts.MaxRequests, opts.RequestWindow),
}
res.cover = NewAlbumCoverCache(filepath.Join(basepath, "covers"), opts.MaxRequests, opts.RequestWindow)