diff --git a/boltdb/attrstore.go b/boltdb/attrstore.go index 3849e0964..1a9ddcf6e 100644 --- a/boltdb/attrstore.go +++ b/boltdb/attrstore.go @@ -71,8 +71,8 @@ type attrStore struct { attrCache *attrCache } -// NewAttrCache returns a new instance of AttrCache. -func NewAttrCache() *attrCache { +// newAttrCache returns a new instance of AttrCache. +func newAttrCache() *attrCache { return &attrCache{ attrs: make(map[uint64]map[string]interface{}), } @@ -82,7 +82,7 @@ func NewAttrCache() *attrCache { func NewAttrStore(path string) pilosa.AttrStore { return &attrStore{ path: path, - attrCache: NewAttrCache(), + attrCache: newAttrCache(), } }