chore: better retry parameters (#45)
This commit is contained in:
parent
897f679a2c
commit
9c3e5f4833
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue