Skip to content

Commit 5fd6e83

Browse files
author
Harshil Goel
committed
Fixed a small bug
1 parent e72712f commit 5fd6e83

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

worker/task.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,12 @@ func (qs *queryState) handleValuePostings(ctx context.Context, args funcArgs) er
380380
getMultiplePosting := q.DoCount || q.ExpandAll || listType || hasLang
381381
//getMultiplePosting := true
382382

383-
cache := make([]*pb.PostingList, 0)
384-
385383
calculate := func(start, end int) error {
386384
x.AssertTrue(start%width == 0)
387385
out := &pb.Result{}
388386
outputs[start/width] = out
389387

388+
cache := make([]*pb.PostingList, 0)
390389
for i := start; i < end; i++ {
391390
select {
392391
case <-ctx.Done():

0 commit comments

Comments
 (0)