sm
/
cache
1
0
Fork 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
1 changed files with 0 additions and 1 deletions

View File

@ -137,7 +137,6 @@ func (c *cache) get(k string) (interface{}, bool) {
// "Inlining" of Expired
if item.Expiration > 0 {
if time.Now().UnixNano() > item.Expiration {
c.mu.RUnlock()
return nil, false
}
}