Skip to content

Commit 5849ccb

Browse files
committed
remove mu.RUnlock call from get
1 parent 721cc94 commit 5849ccb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cache.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ func (c *cache) get(k string) (interface{}, bool) {
137137
// "Inlining" of Expired
138138
if item.Expiration > 0 {
139139
if time.Now().UnixNano() > item.Expiration {
140-
c.mu.RUnlock()
141140
return nil, false
142141
}
143142
}

0 commit comments

Comments
 (0)