From d0df6d8a2d50fdc903c88b60f1fe925020df2790 Mon Sep 17 00:00:00 2001 From: Richard Musiol Date: Mon, 8 May 2017 20:39:43 +0200 Subject: [PATCH] small cleanup --- internal/exec/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/exec/exec.go b/internal/exec/exec.go index b0c6cac85be..f35b4a73f3c 100644 --- a/internal/exec/exec.go +++ b/internal/exec/exec.go @@ -233,8 +233,8 @@ func (r *Request) execSelectionSet(ctx context.Context, sels []selected.Selectio entryouts := make([]bytes.Buffer, l) for i := 0; i < l; i++ { go func(i int) { - defer r.handlePanic(ctx) defer wg.Done() + defer r.handlePanic(ctx) r.execSelectionSet(ctx, sels, t.OfType, resolver.Index(i), &entryouts[i]) }(i) }