Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
latitov committed Oct 28, 2022
1 parent 93318fb commit e3f738b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (c *Cache[K, V]) Get(key K, opts ...Option[K, V]) *Item[K, V] {
return elem.Value.(*Item[K, V])
}

func (c *Cache[K, V]) Transaction(key K, f func(c *Cache[K, V])) {
func (c *Cache[K, V]) Transaction(f func(c *Cache[K, V])) {
if !c.options.lockingFromOutside {
c.CacheItems.Mu.Lock()
}
Expand Down

0 comments on commit e3f738b

Please sign in to comment.