File tree 1 file changed +1
-10
lines changed
graphql-java-servlet/src/main/java/graphql/kickstart/servlet 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -58,16 +58,7 @@ private void invokeAndHandleAsync(
58
58
asyncContext .setTimeout (configuration .getAsyncTimeout ());
59
59
AtomicReference <FutureExecutionResult > futureHolder = new AtomicReference <>();
60
60
AsyncTimeoutListener timeoutListener =
61
- event -> {
62
- Optional .ofNullable (futureHolder .get ()).ifPresent (FutureExecutionResult ::cancel );
63
- writeResultResponse (
64
- invocationInput ,
65
- GraphQLQueryResult .create (
66
- new ExecutionResultImpl (new GenericGraphQLError ("Timeout" ))),
67
- (HttpServletRequest ) event .getAsyncContext ().getRequest (),
68
- (HttpServletResponse ) event .getAsyncContext ().getResponse ());
69
- listenerHandler .onError (event .getThrowable ());
70
- };
61
+ event -> Optional .ofNullable (futureHolder .get ()).ifPresent (FutureExecutionResult ::cancel );
71
62
asyncContext .addListener (timeoutListener );
72
63
asyncContext .start (
73
64
() -> {
You can’t perform that action at this time.
0 commit comments