remove mu.RUnlock call from get
This commit is contained in:
parent
721cc9438c
commit
5849ccb308
1
cache.go
1
cache.go
|
@ -137,7 +137,6 @@ func (c *cache) get(k string) (interface{}, bool) {
|
||||||
// "Inlining" of Expired
|
// "Inlining" of Expired
|
||||||
if item.Expiration > 0 {
|
if item.Expiration > 0 {
|
||||||
if time.Now().UnixNano() > item.Expiration {
|
if time.Now().UnixNano() > item.Expiration {
|
||||||
c.mu.RUnlock()
|
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue