-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Add support for CLAIM arg in XREADGROUP #4344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| idle = LONG.build(objectList.get(2)); | ||
| times = LONG.build(objectList.get(3)); | ||
| } | ||
| return new StreamEntry(entryID, map, idle, times); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly unused code
| if (res.size() >= 4) { | ||
| Object idleObj = res.get(2); | ||
| Object timesObj = res.get(3); | ||
| idle = (idleObj instanceof Long) ? (Long) idleObj : Long.valueOf(STRING.build(idleObj)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Useless ternary - type is byteArray and it should be parsed to String via builder
| if (res.size() >= 4) { | ||
| Object idleObj = res.get(2); | ||
| Object timesObj = res.get(3); | ||
| idle = (idleObj instanceof Long) ? (Long) idleObj : Long.valueOf(STRING.build(idleObj)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
| Map<String, StreamEntryID> stream = Collections.singletonMap(key, StreamEntryID.XREADGROUP_UNDELIVERED_ENTRY); | ||
| exec(commandObjects.xreadGroup(group, consumer, new XReadGroupParams().count(3), stream)); | ||
|
|
||
| Thread.sleep(60); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lessen time waiting or think of a way to modify tests.
Resolves #4334