diff --git a/src/main/groovy/io/seqera/wave/redis/RedisFactory.groovy b/src/main/groovy/io/seqera/wave/redis/RedisFactory.groovy index 1c14a960d..279366cb2 100644 --- a/src/main/groovy/io/seqera/wave/redis/RedisFactory.groovy +++ b/src/main/groovy/io/seqera/wave/redis/RedisFactory.groovy @@ -18,9 +18,6 @@ package io.seqera.wave.redis -import java.util.regex.Pattern -import javax.annotation.Nullable - import groovy.transform.CompileStatic import groovy.util.logging.Slf4j import io.micronaut.context.annotation.Factory @@ -28,7 +25,6 @@ import io.micronaut.context.annotation.Requires import io.micronaut.context.annotation.Value import jakarta.inject.Singleton import redis.clients.jedis.DefaultJedisClientConfig -import redis.clients.jedis.HostAndPort import redis.clients.jedis.JedisPool import redis.clients.jedis.JedisPoolConfig import redis.clients.jedis.exceptions.InvalidURIException @@ -45,10 +41,6 @@ import redis.clients.jedis.util.JedisURIHelper @CompileStatic class RedisFactory { - final static private String ADDRESS_REGEX = '(rediss?://)?(?[^:]+)(:(?\\d+))?' - - final static private Pattern ADDRESS_PATTERN = Pattern.compile(ADDRESS_REGEX) - @Singleton JedisPool createRedisPool( @Value('${redis.uri}') String uriString,