diff --git a/graphql/fieldset.go b/graphql/fieldset.go index 3ba28582a2..2c9e3dc932 100644 --- a/graphql/fieldset.go +++ b/graphql/fieldset.go @@ -46,8 +46,8 @@ func (m *FieldSet) Dispatch(ctx context.Context) { for _, d := range m.delayed[1:] { wg.Add(1) go func(d delayedResult) { + defer wg.Done() m.Values[d.i] = d.f(ctx) - wg.Done() }(d) }