mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(trie): parallel storage proof should not error on closed recv (#13448)
This commit is contained in:
@ -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;
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user