From 9c3e5f4833e45a505688bbfa94bea2f00cb12f14 Mon Sep 17 00:00:00 2001 From: Noah Citron Date: Thu, 22 Sep 2022 12:42:47 -0700 Subject: [PATCH] chore: better retry parameters (#45) --- execution/src/rpc/http_rpc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/execution/src/rpc/http_rpc.rs b/execution/src/rpc/http_rpc.rs index 1680955..a7f50d6 100644 --- a/execution/src/rpc/http_rpc.rs +++ b/execution/src/rpc/http_rpc.rs @@ -31,8 +31,8 @@ impl Clone for HttpRpc { impl Rpc for HttpRpc { fn new(rpc: &str) -> Result { let http = Http::from_str(rpc)?; - let mut client = RetryClient::new(http, Box::new(HttpRateLimitRetryPolicy), 10, 1); - client.set_compute_units(300); + let mut client = RetryClient::new(http, Box::new(HttpRateLimitRetryPolicy), 100, 10); + client.set_compute_units(250); let provider = Provider::new(client); Ok(HttpRpc { url: rpc.to_string(),