mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 16:46:13 +00:00
@@ -112,10 +112,10 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
|
||||
public synchronized WebClient getWebClient() {
|
||||
String webClientIdentifier = "web-client-" + identifier;
|
||||
WebClient webClient = Vertx.currentContext().get(webClientIdentifier);
|
||||
WebClient webClient = this.vertx.getOrCreateContext().get(webClientIdentifier);
|
||||
if (webClient == null) {
|
||||
webClient = buildWebClient(vertx, config);
|
||||
Vertx.currentContext().put(webClientIdentifier, webClient);
|
||||
this.vertx.getOrCreateContext().put(webClientIdentifier, webClient);
|
||||
}
|
||||
return webClient;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user