Invoke correct BZPOPMAX method when called with a Duration.
`ZSetOperations.popMax(K key, Duration timeout)` now calls `popMax` instead the previously incorrect method `popMin`. Closes #2323
This commit is contained in:
@@ -542,7 +542,7 @@ public interface ZSetOperations<K, V> {
|
||||
Assert.notNull(timeout, "Timeout must not be null");
|
||||
Assert.isTrue(!timeout.isNegative(), "Timeout must not be negative");
|
||||
|
||||
return popMin(key, TimeoutUtils.toSeconds(timeout), TimeUnit.SECONDS);
|
||||
return popMax(key, TimeoutUtils.toSeconds(timeout), TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user