Skip to content

Commit

Permalink
Use current context instead of creating new one in ClientRequest (hel…
Browse files Browse the repository at this point in the history
…idon-io#7014)

* Use current context

Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin authored and arjav-desai committed Jun 22, 2023
1 parent d7e6e51 commit 576ef41
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import io.helidon.common.buffers.BufferData;
import io.helidon.common.context.Context;
import io.helidon.common.context.Contexts;
import io.helidon.common.http.ClientRequestHeaders;
import io.helidon.common.http.Http;
import io.helidon.common.http.Http.HeaderValue;
Expand Down Expand Up @@ -340,7 +341,7 @@ private ClientResponseImpl invokeServices(WebClientService.Chain callChain,
query,
UriFragment.empty(),
headers,
Context.create(),
Contexts.context().orElseGet(Context::create),
requestId,
whenComplete,
whenSent,
Expand Down

0 comments on commit 576ef41

Please sign in to comment.