Unexport Index.RecalculateCaches

This commit is contained in:
Cody Soyland 2018-07-05 21:47:45 -05:00
parent 1b6846d6e6
commit 13a6542a15
2 changed files with 3 additions and 3 deletions

View file

@ -462,7 +462,7 @@ func (h *Holder) flushCaches() {
// after setting bits to get expected response.
func (h *Holder) recalculateCaches() {
for _, index := range h.Indexes() {
index.RecalculateCaches()
index.recalculateCaches()
}
}

View file

@ -262,8 +262,8 @@ func (i *Index) Fields() []*Field {
return a
}
// RecalculateCaches recalculates caches on every field in the index.
func (i *Index) RecalculateCaches() {
// recalculateCaches recalculates caches on every field in the index.
func (i *Index) recalculateCaches() {
for _, field := range i.Fields() {
field.recalculateCaches()
}