1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Increase provider rate limited to 5 minutes ()

The metric event for provider methods has been increased from 1 minute
to 5 minutes. This will reduce the event rate, ensuring a maximum of
one event is tracked for each method call every five minutes.
This commit is contained in:
Mark Stacey 2022-10-31 15:24:01 -02:30 committed by GitHub
parent 143793c480
commit 25fae8d32e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ const rateLimitTimeouts = {};
export default function createRPCMethodTrackingMiddleware({
trackEvent,
getMetricsState,
rateLimitSeconds = 60,
rateLimitSeconds = 60 * 5,
}) {
return function rpcMethodTrackingMiddleware(
/** @type {any} */ req,