remove mu.RUnlock call from get

master
Patrick Mylund Nielsen 9 years ago
parent 721cc9438c
commit 5849ccb308

@ -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…
Cancel
Save