From a42da68899e012405b7b89a9f827a58e803bf613 Mon Sep 17 00:00:00 2001 From: Travis Date: Thu, 2 Mar 2017 16:00:34 -0600 Subject: [PATCH] bug fix in SimpleCache.Fetch (really just reverting my change) --- cache.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cache.go b/cache.go index 184310361..7c2e96f2d 100644 --- a/cache.go +++ b/cache.go @@ -397,7 +397,8 @@ type SimpleCache struct { } func (s *SimpleCache) Fetch(id uint64) (*Bitmap, bool) { - return s.cache[id] + m, ok := s.cache[id] + return m, ok } func (s *SimpleCache) Add(id uint64, b *Bitmap) {