Skip to content

Commit 0cba93d

Browse files
fix: List executions are performed in parallel
Previously the `await group` was inside the for loop, effectively making it an async queue, where operations were performed in serial.
1 parent 34cd941 commit 0cba93d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/GraphQL/Execution/Execute.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -866,9 +866,9 @@ func completeListValue(
866866
)
867867
return (index, result)
868868
}
869-
for try await result in group {
870-
results[result.0] = result.1
871-
}
869+
}
870+
for try await result in group {
871+
results[result.0] = result.1
872872
}
873873
return results.compactMap { $0 }
874874
}

0 commit comments

Comments
 (0)