chore: better retry parameters (#45)

This commit is contained in:
Noah Citron 2022-09-22 12:42:47 -07:00 committed by GitHub
parent 897f679a2c
commit 9c3e5f4833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ impl Clone for HttpRpc {
impl Rpc for HttpRpc { impl Rpc for HttpRpc {
fn new(rpc: &str) -> Result<Self> { fn new(rpc: &str) -> Result<Self> {
let http = Http::from_str(rpc)?; let http = Http::from_str(rpc)?;
let mut client = RetryClient::new(http, Box::new(HttpRateLimitRetryPolicy), 10, 1); let mut client = RetryClient::new(http, Box::new(HttpRateLimitRetryPolicy), 100, 10);
client.set_compute_units(300); client.set_compute_units(250);
let provider = Provider::new(client); let provider = Provider::new(client);
Ok(HttpRpc { Ok(HttpRpc {
url: rpc.to_string(), url: rpc.to_string(),