Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: TJ Zhang <[email protected]>
  • Loading branch information
TJ Zhang committed Aug 20, 2024
1 parent 7fe53ef commit eff761b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 8 additions & 3 deletions node/src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5224,8 +5224,9 @@ export class BaseClient {
* @param groupName - The consumer group name.
* @param id - The stream entry ID that should be set as the last delivered ID for the consumer
* group.
* @param entriesRead - (Optional) A value representing the number of stream entries already read by the group. This option can only be specified if you are using Valkey
* version 7.0.0 or above.
* @param entriesRead - (Optional) A value representing the number of stream entries already read by the group.
* This option can only be specified if you are using Valkey version 7.0.0 or above.
* @param decoder - (Optional) {@link Decoder} type which defines how to handle the response. If not set, the default decoder from the client config will be used.
* @returns `"OK"`.
*
* * @example
Expand All @@ -5238,9 +5239,13 @@ export class BaseClient {
groupName: string,
id: string,
entriesRead?: number,
): Promise<string> {
decoder?: Decoder,
): Promise<"OK"> {
return this.createWritePromise(
createXGroupSetid(key, groupName, id, entriesRead),
{
decoder: decoder,
},
);
}

Expand Down
7 changes: 3 additions & 4 deletions node/src/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2917,10 +2917,9 @@ export class BaseTransaction<T extends BaseTransaction<T>> {
*
* @param key - The key of the stream.
* @param groupName - The consumer group name.
* @param id - The stream entry ID that should be set as the last delivered ID for the consumer
* group.
* @param entriesRead - (Optional) A value representing the number of stream entries already read by the group. This option can only be specified if you are using Valkey
* version 7.0.0 or above.
* @param id - The stream entry ID that should be set as the last delivered ID for the consumer group.
* @param entriesRead - (Optional) A value representing the number of stream entries already read by the group.
* This option can only be specified if you are using Valkey version 7.0.0 or above.
*
* Command Response - `"OK"`.
*/
Expand Down

0 comments on commit eff761b

Please sign in to comment.