From ffde862679f7f07181a47aecfe2bb1e787a50861 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:56:16 -0500 Subject: [PATCH] Unexport ValCount.Smaller --- executor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/executor.go b/executor.go index 5d8386e4c..afea60112 100644 --- a/executor.go +++ b/executor.go @@ -267,7 +267,7 @@ func (e *executor) executeMin(ctx context.Context, index string, c *pql.Call, sh // Merge returned results at coordinating node. reduceFn := func(prev, v interface{}) interface{} { other, _ := prev.(ValCount) - return other.Smaller(v.(ValCount)) + return other.smaller(v.(ValCount)) } result, err := e.mapReduce(ctx, index, shards, c, opt, mapFn, reduceFn) @@ -1720,8 +1720,8 @@ func (vc *ValCount) add(other ValCount) ValCount { } } -// Smaller returns the smaller of the two ValCounts. -func (vc *ValCount) Smaller(other ValCount) ValCount { +// smaller returns the smaller of the two ValCounts. +func (vc *ValCount) smaller(other ValCount) ValCount { if vc.Count == 0 || (other.Val < vc.Val && other.Count > 0) { return other }