Simplify worker pool

This commit is contained in:
Deluan
2020-12-15 20:46:52 -05:00
parent fc4ddee122
commit 29817db9f2
4 changed files with 36 additions and 65 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func NewCacheWarmer(artwork Artwork, artworkCache ArtworkCache) CacheWarmer {
artworkCache: artworkCache,
albums: map[string]struct{}{},
}
p, err := pool.NewPool("artwork", 3, &artworkItem{}, w.execute)
p, err := pool.NewPool("artwork", 3, w.execute)
if err != nil {
log.Error(context.Background(), "Error creating pool for Album Artwork Cache Warmer", err)
} else {