Skip to content

Commit

Permalink
Use AttributeKey.valueOf(…) instead of AttributeKey.newInstance #…
Browse files Browse the repository at this point in the history
…2111 #2260

Changed the method used to make sure that it calls getOrCreate instead of createOrThrow
  • Loading branch information
Emibergo02 authored and mp911de committed Nov 23, 2022
1 parent 1bf0398 commit 803c682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/lettuce/core/ConnectionBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class ConnectionBuilder {

private static final InternalLogger logger = InternalLoggerFactory.getInstance(ConnectionBuilder.class);

public static final AttributeKey<String> REDIS_URI = AttributeKey.newInstance("RedisURI");
public static final AttributeKey<String> REDIS_URI = AttributeKey.valueOf("RedisURI");

private Mono<SocketAddress> socketAddressSupplier;

Expand Down

0 comments on commit 803c682

Please sign in to comment.