From 0cc4c7f5fc9094fb092eb9df2a5733ed0339cc32 Mon Sep 17 00:00:00 2001 From: Auri Munoz Date: Tue, 16 Jul 2024 15:05:42 +0200 Subject: [PATCH] format --- .../serviceregistration/consul/ConsulServiceRegistrar.java | 4 ++-- .../consul/ConsulServiceRegistrationTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/service-registration/consul/src/main/java/io/smallrye/stork/serviceregistration/consul/ConsulServiceRegistrar.java b/service-registration/consul/src/main/java/io/smallrye/stork/serviceregistration/consul/ConsulServiceRegistrar.java index f312fdbf..0d56009a 100644 --- a/service-registration/consul/src/main/java/io/smallrye/stork/serviceregistration/consul/ConsulServiceRegistrar.java +++ b/service-registration/consul/src/main/java/io/smallrye/stork/serviceregistration/consul/ConsulServiceRegistrar.java @@ -3,13 +3,13 @@ import java.util.ArrayList; import java.util.List; -import io.smallrye.stork.impl.ConsulMetadataKey; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import io.smallrye.mutiny.Uni; import io.smallrye.stork.api.Metadata; import io.smallrye.stork.api.ServiceRegistrar; +import io.smallrye.stork.impl.ConsulMetadataKey; import io.smallrye.stork.spi.StorkInfrastructure; import io.vertx.core.Vertx; import io.vertx.ext.consul.ConsulClient; @@ -36,7 +36,7 @@ public ConsulServiceRegistrar(ConsulRegistrarConfiguration config, String servic @Override public Uni registerServiceInstance(String serviceName, Metadata metadata, String ipAddress, - int defaultPort) { + int defaultPort) { String consulId = metadata.getMetadata().get(ConsulMetadataKey.META_CONSUL_SERVICE_ID).toString(); diff --git a/service-registration/consul/src/test/java/io/smallrye/stork/serviceregistration/consul/ConsulServiceRegistrationTest.java b/service-registration/consul/src/test/java/io/smallrye/stork/serviceregistration/consul/ConsulServiceRegistrationTest.java index 9836764d..4719c949 100644 --- a/service-registration/consul/src/test/java/io/smallrye/stork/serviceregistration/consul/ConsulServiceRegistrationTest.java +++ b/service-registration/consul/src/test/java/io/smallrye/stork/serviceregistration/consul/ConsulServiceRegistrationTest.java @@ -8,7 +8,6 @@ import java.util.Map; import java.util.concurrent.CountDownLatch; -import io.smallrye.stork.impl.ConsulMetadataKey; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.DisabledOnOs; @@ -23,6 +22,7 @@ import io.smallrye.stork.Stork; import io.smallrye.stork.api.Metadata; import io.smallrye.stork.api.ServiceRegistrar; +import io.smallrye.stork.impl.ConsulMetadataKey; import io.smallrye.stork.test.StorkTestUtils; import io.smallrye.stork.test.TestConfigProvider; import io.vertx.core.Vertx;