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 (#16308)

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
parent f9d468fc4b
commit 824184ed52

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,