Skip to content

Commit

Permalink
refactor: fix code comments and change 'up' rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Mar 1, 2023
1 parent a1c3c6a commit 1dacaa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/status/pat-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* @file Contains a simple cloud function that can be used to check which PATs are no
* longer working. It returns a list of valid PATs, expired PATs and PATs with errors.
*
* @description This function is currently rate limited to 1 request per 10 minutes.
* @description This function is currently rate limited to 1 request per 5 minutes.
*/

import { logger, request, dateDiff } from "../../src/common/utils.js";
export const RATE_LIMIT_SECONDS = 60 * 5; // 1 request per 10 minutes
export const RATE_LIMIT_SECONDS = 60 * 5; // 1 request per 5 minutes

/**
* Simple uptime check fetcher for the PATs.
Expand Down
4 changes: 2 additions & 2 deletions api/status/up.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* @file Contains a simple cloud function that can be used to check if the PATs are still
* functional.
*
* @description This function is currently rate limited to 1 request per 10 minutes.
* @description This function is currently rate limited to 1 request per 5 minutes.
*/

import retryer from "../../src/common/retryer.js";
import { logger, request } from "../../src/common/utils.js";

export const RATE_LIMIT_SECONDS = 60 * 10; // 1 request per 10 minutes
export const RATE_LIMIT_SECONDS = 60 * 5; // 1 request per 5 minutes

/**
* Simple uptime check fetcher for the PATs.
Expand Down

0 comments on commit 1dacaa8

Please sign in to comment.