From 5ff47447a77584aa46cb8a85d1dae7420817d71e Mon Sep 17 00:00:00 2001 From: Harshil Goel Date: Fri, 15 Sep 2023 11:54:25 +0530 Subject: [PATCH] Fixed a small bug --- worker/task.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/worker/task.go b/worker/task.go index dbaf12ad298..8149afd6eaf 100644 --- a/worker/task.go +++ b/worker/task.go @@ -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():