Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Jun 2, 2023
1 parent 2379c6b commit 030dca7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public void service(ServletExchange<REQ, RES> exchange) {

if (exchange.getRequest().isAsyncSupported()) {
exchange.getRequest().executeAsync(asyncExecution -> {
try (PropagatedContext.Scope ignore = PropagatedContext.newContext(new ServerHttpRequestContext(req)).propagate()) {
try (PropagatedContext.Scope ignore = PropagatedContext.getOrEmpty().plus(new ServerHttpRequestContext(req)).propagate()) {
lc.handleNormal()
.onComplete((response, throwable) -> onComplete(exchange, req, response, throwable, httpResponse -> {
asyncExecution.complete();
Expand All @@ -217,7 +217,7 @@ public void service(ServletExchange<REQ, RES> exchange) {
}
});
} else {
try (PropagatedContext.Scope ignore = PropagatedContext.newContext(new ServerHttpRequestContext(req)).propagate()) {
try (PropagatedContext.Scope ignore = PropagatedContext.getOrEmpty().plus(new ServerHttpRequestContext(req)).propagate()) {
CompletableFuture<?> termination = new CompletableFuture<>();
lc.handleNormal()
.onComplete((response, throwable) -> {
Expand Down

0 comments on commit 030dca7

Please sign in to comment.