Fixed - RedisStreamCommands.xGroupDelConsumer() method in Spring Data Redis module uses incorrect command. #3602

pull/3619/head
Nikita Koksharov 4 years ago
parent 614694d700
commit a8841304bf

@ -109,7 +109,7 @@ public class RedissonStreamCommands implements RedisStreamCommands {
return connection.write(key, StringCodec.INSTANCE, XGROUP_STRING, "CREATE", key, groupName, readOffset.getOffset(), "MKSTREAM");
}
private static final RedisStrictCommand<Boolean> XGROUP_BOOLEAN = new RedisStrictCommand<Boolean>("XADD", obj -> ((Long)obj) > 0);
private static final RedisStrictCommand<Boolean> XGROUP_BOOLEAN = new RedisStrictCommand<Boolean>("XGROUP", obj -> ((Long)obj) > 0);
@Override
public Boolean xGroupDelConsumer(byte[] key, Consumer consumer) {

@ -395,7 +395,7 @@ public class RedissonStreamCommands implements RedisStreamCommands {
return xGroupCreate(key, groupName, readOffset, false);
}
private static final RedisStrictCommand<Boolean> XGROUP_BOOLEAN = new RedisStrictCommand<Boolean>("XADD", obj -> ((Long)obj) > 0);
private static final RedisStrictCommand<Boolean> XGROUP_BOOLEAN = new RedisStrictCommand<Boolean>("XGROUP", obj -> ((Long)obj) > 0);
@Override
public Boolean xGroupDelConsumer(byte[] key, Consumer consumer) {

@ -394,7 +394,7 @@ public class RedissonStreamCommands implements RedisStreamCommands {
return xGroupCreate(key, groupName, readOffset, false);
}
private static final RedisStrictCommand<Boolean> XGROUP_BOOLEAN = new RedisStrictCommand<Boolean>("XADD", obj -> ((Long)obj) > 0);
private static final RedisStrictCommand<Boolean> XGROUP_BOOLEAN = new RedisStrictCommand<Boolean>("XGROUP", obj -> ((Long)obj) > 0);
@Override
public Boolean xGroupDelConsumer(byte[] key, Consumer consumer) {

Loading…
Cancel
Save