Skip to content

Commit 5349bcc

Browse files
Use permanent retry case
1 parent 68e7c5b commit 5349bcc

File tree

1 file changed

+4
-4
lines changed
  • aggregation_mode/proof_aggregator/src/backend

1 file changed

+4
-4
lines changed

aggregation_mode/proof_aggregator/src/backend/retry.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ use tokio::time::sleep;
2222
#[derive(Debug)]
2323
pub enum RetryError<E> {
2424
Transient(E),
25-
// Permanent(E),
25+
Permanent(E),
2626
}
2727

2828
impl<E: std::fmt::Display> std::fmt::Display for RetryError<E> {
2929
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
3030
match self {
3131
RetryError::Transient(e) => write!(f, "{e}"),
32-
//RetryError::Permanent(e) => write!(f, "{e}"),
32+
RetryError::Permanent(e) => write!(f, "{e}"),
3333
}
3434
}
3535
}
@@ -38,7 +38,7 @@ impl<E> RetryError<E> {
3838
pub fn inner(self) -> E {
3939
match self {
4040
RetryError::Transient(e) => e,
41-
//RetryError::Permanent(e) => e,
41+
RetryError::Permanent(e) => e,
4242
}
4343
}
4444
}
@@ -137,7 +137,7 @@ pub async fn wait_and_send_proof_to_verify_on_chain(
137137
AlignedProof::Risc0(proof) => {
138138
let encoded_seal = encode_seal(&proof.receipt)
139139
.map_err(|e| AggregatedProofSubmissionError::Risc0EncodingSeal(e.to_string()))
140-
.map_err(RetryError::Transient)?;
140+
.map_err(RetryError::Permanent)?;
141141
proof_aggregation_service
142142
.verifyAggregationRisc0(
143143
blob_versioned_hash.into(),

0 commit comments

Comments
 (0)