Skip to content

Commit

Permalink
fix: use proper xid types for xpending range (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturSharapov authored Jun 29, 2024
1 parent dc6c4b3 commit 287f5df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1922,8 +1922,8 @@ class RedisImpl implements Redis {
consumer?: string,
) {
const args = [];
args.push(startEndCount.start);
args.push(startEndCount.end);
args.push(xidstr(startEndCount.start));
args.push(xidstr(startEndCount.end));
args.push(startEndCount.count);

if (consumer) {
Expand Down
4 changes: 2 additions & 2 deletions stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ export interface XPendingCount {
* args must be specified if _any_ are specified.
*/
export interface StartEndCount {
start: number | "-";
end: number | "+";
start: XIdNeg;
end: XIdPos;
count: number;
}

Expand Down

0 comments on commit 287f5df

Please sign in to comment.