Skip to content

Commit

Permalink
remove mu.RUnlock call from get
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmn committed Jan 8, 2016
1 parent 721cc94 commit 5849ccb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 5849ccb

Please sign in to comment.