mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
bug fix in SimpleCache.Fetch (really just reverting my change)
This commit is contained in:
parent
bfc0e56dc2
commit
a42da68899
1 changed files with 2 additions and 1 deletions
3
cache.go
3
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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue