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:
parent
143793c480
commit
25fae8d32e
@ -104,7 +104,7 @@ const rateLimitTimeouts = {};
|
||||
export default function createRPCMethodTrackingMiddleware({
|
||||
trackEvent,
|
||||
getMetricsState,
|
||||
rateLimitSeconds = 60,
|
||||
rateLimitSeconds = 60 * 5,
|
||||
}) {
|
||||
return function rpcMethodTrackingMiddleware(
|
||||
/** @type {any} */ req,
|
||||
|
Loading…
Reference in New Issue
Block a user