Skip to content

Commit

Permalink
chore(trie): parallel storage proof should not error on closed recv (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored Jan 6, 2025
1 parent f4ce10b commit 49d1b50
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/trie/parallel/src/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use reth_trie::{
use reth_trie_common::proof::ProofRetainer;
use reth_trie_db::{DatabaseHashedCursorFactory, DatabaseTrieCursorFactory};
use std::{sync::Arc, time::Instant};
use tracing::{debug, error, trace};
use tracing::{debug, trace};

#[cfg(feature = "metrics")]
use crate::metrics::ParallelStateRootMetrics;
Expand Down Expand Up @@ -196,8 +196,11 @@ where
proof_result
})();

// We can have the receiver dropped before we send, because we still calculate
// storage proofs for deleted accounts, but do not actually walk over them in
// `account_node_iter` below.
if let Err(e) = tx.send(result) {
error!(
debug!(
target: "trie::parallel",
?hashed_address,
error = ?e,
Expand Down

0 comments on commit 49d1b50

Please sign in to comment.