Skip to content

Commit

Permalink
minor adjustment to the global client config creation
Browse files Browse the repository at this point in the history
Signed-off-by: David Kral <[email protected]>
  • Loading branch information
Verdent committed Oct 18, 2024
1 parent 49bfb66 commit 1c7c8c1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ class Http1ClientImpl implements Http1Client, HttpClientSpi {
static final AtomicReference<Http1ClientConfig> GLOBAL_CONFIG = new AtomicReference<>();
private static final LazyValue<Http1ClientConfig> LAZY_GLOBAL_CONFIG = LazyValue.create(() -> {
Config config = GlobalConfig.config();
return Http1ClientConfig.create(config.get("client"));
return Http1ClientConfig.builder()
.servicesDiscoverServices(false)
.config(config.get("http1-client"))
.buildPrototype();
});

private final WebClient webClient;
Expand Down

0 comments on commit 1c7c8c1

Please sign in to comment.