From 0531e2f8dd353d5c382a95671314d97ccd071a65 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 8 May 2023 11:25:27 -0600 Subject: [PATCH] add 'quota usage' rate limit substring --- web3_proxy/src/rpcs/many.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3_proxy/src/rpcs/many.rs b/web3_proxy/src/rpcs/many.rs index dbead8a8..8fce98df 100644 --- a/web3_proxy/src/rpcs/many.rs +++ b/web3_proxy/src/rpcs/many.rs @@ -929,7 +929,7 @@ impl Web3Rpcs { // different providers do different codes. check all of them // TODO: there's probably more strings to add here - let rate_limit_substrings = ["limit", "exceeded"]; + let rate_limit_substrings = ["limit", "exceeded", "quota usage"]; for rate_limit_substr in rate_limit_substrings { if error_msg.contains(rate_limit_substr) { warn!("rate limited by {}", skip_rpcs.last().unwrap());