You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Reject requests when they've exceeded 2x the rate limit.
80
-
if(requestCount>2*limitPerWindow){
81
-
return{
82
-
rateLimited: true,
83
-
requestCount,
84
-
rateLimit: limitPerWindow,
85
-
status: 429,
86
-
errorMessage: `You've exceeded your ${serviceScope} rate limit at ${limitPerSecond} reqs/sec. To get higher rate limits, contact us at https://thirdweb.com/contact-us.`,
87
-
errorCode: "RATE_LIMIT_EXCEEDED",
88
-
};
89
-
}
85
+
return{
86
+
rateLimited: true,
87
+
requestCount,
88
+
rateLimit: limitPerWindow,
89
+
status: 429,
90
+
errorMessage: `You've exceeded your ${serviceScope} rate limit at ${limitPerSecond} reqs/sec. To get higher rate limits, contact us at https://thirdweb.com/contact-us.`,
0 commit comments