Skip to content

Commit 900cfe0

Browse files
Merge pull request Workiva#185 from Workiva/fix-non-aligned-read
RM-25125 Fix non aligned read
2 parents 9937fb4 + b358731 commit 900cfe0

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)