Skip to content

Commit

Permalink
Ensure REST Client Reactive always uses Event Loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgitario committed Apr 21, 2023
1 parent 73ac18c commit 26e8d5d
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -282,7 +282,12 @@ RestClientRequestContext performRequestInternal(String httpMethodName, Entity<?>
entity, responseType, registerBodyHandler, properties, handlerChain.createHandlerChain(configuration),
handlerChain.createAbortHandlerChain(configuration),
handlerChain.createAbortHandlerChainWithoutResponseFilters(), requestContext);
restClientRequestContext.run();
restClientRequestContext.getEventLoop().execute(new Runnable() {
@Override
public void run() {
restClientRequestContext.run();
}
});
return restClientRequestContext;
}

Expand Down

0 comments on commit 26e8d5d

Please sign in to comment.