Skip to content

Commit

Permalink
chore: limit list and lock head to 25 too
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu committed Aug 31, 2023
1 parent 415b0f5 commit 8c5c59a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class RequestQueueClient extends BaseClient implements storage.RequestQue

async listAndLockHead(options: storage.ListAndLockOptions): Promise<storage.ListAndLockHeadResult> {
const { limit, lockSecs } = s.object({
limit: s.number.optional.default(100),
limit: s.number.lessThanOrEqual(25).optional.default(25),
lockSecs: s.number,
}).parse(options);

Expand Down

0 comments on commit 8c5c59a

Please sign in to comment.