Skip to content

Commit

Permalink
Fixed a small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshil Goel committed Sep 15, 2023
1 parent 6c43df1 commit 5ff4744
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions worker/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,12 @@ func (qs *queryState) handleValuePostings(ctx context.Context, args funcArgs) er
getMultiplePosting := q.DoCount || q.ExpandAll || listType || hasLang
//getMultiplePosting := true

cache := make([]*pb.PostingList, 0)

calculate := func(start, end int) error {
x.AssertTrue(start%width == 0)
out := &pb.Result{}
outputs[start/width] = out

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

0 comments on commit 5ff4744

Please sign in to comment.