chore(trie): log proof result send error (#12749)

This commit is contained in:
Federico Gimenez
2024-11-22 09:44:56 +01:00
committed by GitHub
parent d3b68656c2
commit 7d24aa40e8

View File

@ -22,7 +22,7 @@ use reth_trie::{
use reth_trie_common::proof::ProofRetainer; use reth_trie_common::proof::ProofRetainer;
use reth_trie_db::{DatabaseHashedCursorFactory, DatabaseTrieCursorFactory}; use reth_trie_db::{DatabaseHashedCursorFactory, DatabaseTrieCursorFactory};
use std::sync::Arc; use std::sync::Arc;
use tracing::debug; use tracing::{debug, error};
#[cfg(feature = "metrics")] #[cfg(feature = "metrics")]
use crate::metrics::ParallelStateRootMetrics; use crate::metrics::ParallelStateRootMetrics;
@ -126,7 +126,9 @@ where
)) ))
}) })
})(); })();
let _ = tx.send(result); if let Err(err) = tx.send(result) {
error!(target: "trie::parallel", ?hashed_address, err_content = ?err.0, "Failed to send proof result");
}
}); });
storage_proofs.insert(hashed_address, rx); storage_proofs.insert(hashed_address, rx);
} }