mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
fix: update error handling in MultiProofTask to use unreachable!() for closed proof result channel
This commit is contained in:
@@ -1167,8 +1167,11 @@ impl MultiProofTask {
|
||||
}
|
||||
}
|
||||
Err(_) => {
|
||||
error!(target: "engine::tree::payload_processor::multiproof", "Proof result channel closed unexpectedly");
|
||||
return
|
||||
// SAFETY: This is unreachable because `self.multiproof_manager` owns
|
||||
// `proof_result_tx` (the sender), which keeps the channel open for
|
||||
// the entire lifetime of this task. The channel cannot close while
|
||||
// `self` exists.
|
||||
unreachable!("proof result channel closed while multiproof manager still exists")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user