From 25fae8d32e4f38f2758416f1dc23f10c2546658d Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Mon, 31 Oct 2022 15:24:01 -0230 Subject: [PATCH] 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. --- app/scripts/lib/createRPCMethodTrackingMiddleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/lib/createRPCMethodTrackingMiddleware.js b/app/scripts/lib/createRPCMethodTrackingMiddleware.js index 3362e29ad..8829bf5e2 100644 --- a/app/scripts/lib/createRPCMethodTrackingMiddleware.js +++ b/app/scripts/lib/createRPCMethodTrackingMiddleware.js @@ -104,7 +104,7 @@ const rateLimitTimeouts = {}; export default function createRPCMethodTrackingMiddleware({ trackEvent, getMetricsState, - rateLimitSeconds = 60, + rateLimitSeconds = 60 * 5, }) { return function rpcMethodTrackingMiddleware( /** @type {any} */ req,