From 9db210927838c29993b722a08989231ffb7eab9f Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:56:57 -0500 Subject: [PATCH] Unexport boltdb.NewAttrCache --- boltdb/attrstore.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(), } }