Unexport Field.MaxShard

This commit is contained in:
Cody Soyland 2018-07-05 21:43:48 -05:00
parent 16461345f6
commit cbf821123e
2 changed files with 3 additions and 3 deletions

View file

@ -183,8 +183,8 @@ func (f *Field) Path() string { return f.path }
// RowAttrStore returns the attribute storage.
func (f *Field) RowAttrStore() AttrStore { return f.rowAttrStore }
// MaxShard returns the max shard in the field.
func (f *Field) MaxShard() uint64 {
// maxShard returns the max shard in the field.
func (f *Field) maxShard() uint64 {
f.mu.RLock()
defer f.mu.RUnlock()

View file

@ -220,7 +220,7 @@ func (i *Index) maxShard() uint64 {
max := i.remoteMaxShard
for _, f := range i.fields {
if shard := f.MaxShard(); shard > max {
if shard := f.maxShard(); shard > max {
max = shard
}
}