diff --git a/Cargo.lock b/Cargo.lock index 83ce4b5b..fab7b447 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5531,7 +5531,6 @@ dependencies = [ name = "nssa" version = "0.1.0" dependencies = [ - "amm_core", "anyhow", "borsh", "env_logger", diff --git a/bedrock_client/src/lib.rs b/bedrock_client/src/lib.rs index 6214226c..fdd14f72 100644 --- a/bedrock_client/src/lib.rs +++ b/bedrock_client/src/lib.rs @@ -69,13 +69,13 @@ impl BedrockClient { .post_transaction(self.node_url.clone(), tx.clone()) .await { - Ok(_) => Ok(Ok(())), + Ok(()) => Ok(Ok(())), Err(err) => match err { // Retry arm. // Retrying only reqwest errors: mainly connected to http. Error::Request(_) => Err(err), // Returning non-retryable error - _ => Ok(Err(err)), + Error::Server(_) | Error::Client(_) | Error::Url(_) => Ok(Err(err)), }, } })