1
0

remove mu.RUnlock call from get

This commit is contained in:
Patrick Mylund Nielsen 2016-01-08 15:02:42 -05:00
parent 721cc9438c
commit 5849ccb308

View File

@ -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
} }
} }