Skip to content

Commit

Permalink
Fix timeout parameter for nanoseconds in RedisURI #1528
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored and mp911de committed Nov 27, 2020
1 parent 7df7eee commit bd68d86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/lettuce/core/RedisURI.java
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ private String getQueryString() {
if (timeout.getNano() == 0) {
queryPairs.add(PARAMETER_NAME_TIMEOUT + "=" + timeout.getSeconds() + "s");
} else {
queryPairs.add(PARAMETER_NAME_TIMEOUT + "=" + timeout.toMillis() + "ns");
queryPairs.add(PARAMETER_NAME_TIMEOUT + "=" + timeout.toNanos() + "ns");
}
}

Expand Down

0 comments on commit bd68d86

Please sign in to comment.