Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Composieux <vincent.composieux@gmail.com>
  • Loading branch information
advoretsky and eko committed Apr 16, 2024
1 parent 9695206 commit dcc921e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cache/loadable.go
Expand Up @@ -52,7 +52,9 @@ func (c *LoadableCache[T]) setter() {

for item := range c.setChannel {
c.Set(context.Background(), item.key, item.value)
c.singleFlight.Forget(c.getCacheKey(item.key))

cacheKey := c.getCacheKey(item.key)
c.singleFlight.Forget(cacheKey)
}
}

Expand Down

0 comments on commit dcc921e

Please sign in to comment.