Skip to content

Commit 0289f02

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

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
@@ -962,7 +962,7 @@ public static class Builder {
962962
private String host;
963963
private String socket;
964964
private String sentinelMasterId;
965-
private int port;
965+
private int port = DEFAULT_REDIS_PORT;
966966
private int database;
967967
private String clientName;
968968
private String username;

0 commit comments

Comments
 (0)