Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Unger <6905948+refs@users.noreply.github.com>
  • Loading branch information
ishank011 and refs authored May 6, 2021
1 parent 203ba5d commit 1da6776
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ func (h *Handler) Init(c *config.Config) error {
h.resourceInfoCache = gcache.New(c.ResourceInfoCacheSize).LFU().Build()

if h.resourceInfoCacheTTL > 0 {
cwm, _ := getCacheWarmupManager(c)
go h.startCacheWarmup(cwm)
cwm, err := getCacheWarmupManager(c)
if err == nil {
go h.startCacheWarmup(cwm)
}
}

return nil
Expand Down

0 comments on commit 1da6776

Please sign in to comment.