DATAREDIS-1207 - Fix LettuceStreamCommands.xPending Range conversion..

Original Pull Request: #556
This commit is contained in:
Christoph Strobl
2020-09-01 13:00:22 +02:00
parent 0ee04a7dc6
commit 51ea73afc6
2 changed files with 24 additions and 1 deletions

View File

@@ -442,7 +442,7 @@ class LettuceStreamCommands implements RedisStreamCommands {
public PendingMessages xPending(byte[] key, String groupName, XPendingOptions options) {
byte[] group = LettuceConverters.toBytes(groupName);
io.lettuce.core.Range<String> range = RangeConverter.toRangeWithDefault(options.getRange(), "-", "+");
io.lettuce.core.Range<String> range = RangeConverter.toRangeWithDefault(options.getRange(), "-", "+", Function.identity());
io.lettuce.core.Limit limit = options.isLimited() ? io.lettuce.core.Limit.from(options.getCount())
: io.lettuce.core.Limit.unlimited();