Skip to content

Commit c02a65d

Browse files
He-Pinmp911de
authored andcommitted
Provide a default port to RedisURI's Builder instead of 0 #1205
1 parent 4bf804c commit c02a65d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/lettuce/core/RedisURI.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ public static class Builder {
987987
private String host;
988988
private String socket;
989989
private String sentinelMasterId;
990-
private int port;
990+
private int port = DEFAULT_REDIS_PORT;
991991
private int database;
992992
private String clientName;
993993
private char[] password;

0 commit comments

Comments
 (0)