Skip to content

Commit f589fa5

Browse files
committed
Refactor subscriptions
1 parent 8bac91a commit f589fa5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

graphql-java-kickstart/src/main/java/graphql/kickstart/execution/GraphQLInvoker.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package graphql.kickstart.execution;
22

3+
import static java.util.stream.Collectors.toList;
4+
35
import graphql.ExecutionResult;
46
import graphql.GraphQL;
57
import graphql.kickstart.execution.context.ContextSetting;
@@ -45,10 +47,7 @@ private List<ExecutionResult> query(List<GraphQLSingleInvocationInput> batchedIn
4547
// .configureInstrumentationForContext(getInstrumentation, executionIds, optionsSupplier.get());
4648
return batchedInvocationInput.stream()
4749
.map(this::executeAsync)
48-
//We want eager eval
49-
.collect(Collectors.toList())
50-
.stream()
5150
.map(CompletableFuture::join)
52-
.collect(Collectors.toList());
51+
.collect(toList());
5352
}
5453
}

0 commit comments

Comments
 (0)