From 5849ccb30876239377aca783d5d9546f3876020e Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Fri, 8 Jan 2016 15:02:42 -0500 Subject: [PATCH] remove mu.RUnlock call from get --- cache.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cache.go b/cache.go index ff2c1e2..3562543 100644 --- a/cache.go +++ b/cache.go @@ -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 } }