File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
graphql-java-kickstart/src/main/java/graphql/kickstart/execution Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 22
33import graphql .ExecutionInput ;
44import graphql .ExecutionResult ;
5+ import graphql .GraphQL ;
56import graphql .kickstart .execution .context .GraphQLContext ;
67import java .security .AccessController ;
78import java .security .PrivilegedAction ;
1112public class GraphQLInvokerSubjectProxy implements GraphQLInvokerProxy {
1213
1314 @ Override
14- public CompletableFuture <ExecutionResult > executeAsync (GraphQLInvoker graphQLInvoker , ExecutionInput executionInput ) {
15+ public CompletableFuture <ExecutionResult > executeAsync (GraphQL graphQL , ExecutionInput executionInput ) {
1516 GraphQLContext context = (GraphQLContext ) executionInput .getContext ();
1617 if (Subject .getSubject (AccessController .getContext ()) == null && context .getSubject ().isPresent ()) {
1718 return Subject
1819 .doAs (context .getSubject ().get (), (PrivilegedAction <CompletableFuture <ExecutionResult >>) () -> {
1920 try {
20- return graphQLInvoker .executeAsync (executionInput );
21+ return graphQL .executeAsync (executionInput );
2122 } catch (Exception e ) {
2223 throw new RuntimeException (e );
2324 }
2425 });
2526 }
26- return graphQLInvoker .executeAsync (executionInput );
27+ return graphQL .executeAsync (executionInput );
2728 }
2829
2930}
You can’t perform that action at this time.
0 commit comments