|
|
@@ -96,11 +96,11 @@ public class DefaultHttpServerProvider implements NetworkProvider<HttpServerConf
|
|
|
@Override
|
|
|
public Mono<HttpServerConfig> createConfig(@Nonnull NetworkProperties properties) {
|
|
|
return Mono.defer(() -> {
|
|
|
- HttpServerConfig config = FastBeanCopier.copy(properties.getConfigurations(), new HttpServerConfig());
|
|
|
- config.setId(properties.getId());
|
|
|
- config.validate();
|
|
|
- return Mono.just(config);
|
|
|
- })
|
|
|
+ HttpServerConfig config = FastBeanCopier.copy(properties.getConfigurations(), new HttpServerConfig());
|
|
|
+ config.setId(properties.getId());
|
|
|
+ config.validate();
|
|
|
+ return Mono.just(config);
|
|
|
+ })
|
|
|
.as(LocaleUtils::transform);
|
|
|
}
|
|
|
|
|
|
@@ -117,7 +117,7 @@ public class DefaultHttpServerProvider implements NetworkProvider<HttpServerConf
|
|
|
server.setHttpServers(instances);
|
|
|
for (HttpServer httpServer : instances) {
|
|
|
vertx.nettyEventLoopGroup()
|
|
|
- .execute(()->{
|
|
|
+ .execute(() -> {
|
|
|
httpServer.listen(result -> {
|
|
|
if (result.succeeded()) {
|
|
|
log.debug("startup http server on [{}]", server.getBindAddress());
|