diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index 2ca08007e4..3671ef9e52 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -428,20 +428,6 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
-[[package]]
-name = "backoff"
-version = "0.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1"
-dependencies = [
- "futures-core",
- "getrandom 0.2.10",
- "instant",
- "pin-project-lite",
- "rand 0.8.5",
- "tokio",
-]
-
[[package]]
name = "backtrace"
version = "0.3.68"
@@ -6063,7 +6049,6 @@ name = "relayer"
version = "0.1.0"
dependencies = [
"async-trait",
- "backoff",
"config",
"convert_case 0.6.0",
"derive-new",
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 67a8597b60..3608f3f1f8 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -52,7 +52,6 @@ Inflector = "0.11.4"
anyhow = "1.0"
async-trait = "0.1"
auto_impl = "1.0"
-backoff = { version = "0.4.0", features = ["tokio"] }
backtrace = "0.3"
base64 = "0.21.2"
bincode = "1.3"
diff --git a/rust/agents/relayer/Cargo.toml b/rust/agents/relayer/Cargo.toml
index 406bf96925..7eb5b83fe6 100644
--- a/rust/agents/relayer/Cargo.toml
+++ b/rust/agents/relayer/Cargo.toml
@@ -11,7 +11,6 @@ version.workspace = true
[dependencies]
async-trait.workspace = true
-backoff.workspace = true
config.workspace = true
convert_case.workspace = true
derive-new.workspace = true
diff --git a/rust/agents/relayer/src/merkle_tree/builder.rs b/rust/agents/relayer/src/merkle_tree/builder.rs
index 56930cf6fe..68c046f263 100644
--- a/rust/agents/relayer/src/merkle_tree/builder.rs
+++ b/rust/agents/relayer/src/merkle_tree/builder.rs
@@ -59,9 +59,6 @@ pub enum MerkleTreeBuilderError {
/// DB Error
#[error("{0}")]
DbError(#[from] DbError),
- /// Some other error occured.
- #[error("Failed to build the merkle tree: {0}")]
- Other(String),
}
impl MerkleTreeBuilder {
@@ -81,16 +78,19 @@ impl MerkleTreeBuilder {
message_nonce: u32,
root_index: u32,
) -> Result