Skip to content

Commit 52fb8b8

Browse files
committed
Merge branch 'master' of https://github.com/Workiva/go-datastructures into patch-1
2 parents 71e359c + 900cfe0 commit 52fb8b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cache/cache.go

+3
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ func (c *cache) Remove(keys ...string) {
144144
}
145145

146146
func (c *cache) Size() uint64 {
147+
c.Lock()
148+
defer c.Unlock()
149+
147150
return c.size
148151
}
149152

0 commit comments

Comments
 (0)