Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions packages/contracts/src/rate-limit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const limits = {
},

adminLimit: {
window: 5000,
window: 5000, // 5 seconds
max: 1,
},

Expand Down Expand Up @@ -73,23 +73,23 @@ export const limits = {

// Quote reporting
quoteReportSubmit: {
window: 30 * 60 * 1000, // 30 min
window: 30 * 60 * 1000, // 30 minutes
max: 50,
},

// Quote favorites
quoteFavoriteGet: {
window: 30 * 60 * 1000, // 30 min
window: 30 * 60 * 1000, // 30 minutes
max: 50,
},

quoteFavoritePost: {
window: 30 * 60 * 1000, // 30 min
window: 30 * 60 * 1000, // 30 minutes
max: 50,
},

quoteFavoriteDelete: {
window: 30 * 60 * 1000, // 30 min
window: 30 * 60 * 1000, // 30 minutes
max: 50,
},

Expand Down Expand Up @@ -120,7 +120,7 @@ export const limits = {
max: 60,
},

// get public speed stats
// Get public speed stats
publicStatsGet: {
window: "minute",
max: 60,
Expand Down Expand Up @@ -166,7 +166,7 @@ export const limits = {
},

resultsMismatchReport: {
window: 5 * 60 * 1000, // 15 min
window: 5 * 60 * 1000, // 5 minutes
max: 1,
},

Expand Down Expand Up @@ -395,7 +395,7 @@ export const limits = {

export type RateLimiterId = keyof typeof limits;
export type RateLimitIds = {
/** rate limiter options for non-apeKey requests */
/** Rate limiter options for non-apeKey requests */
normal: RateLimiterId;
/** Rate limiter options for apeKey requests */
apeKey: RateLimiterId;
Expand Down
Loading