Skip to content

Commit ab8df8e

Browse files
committed
trival update considering AI reviews
1 parent 755ed60 commit ab8df8e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

crates/l2geth/src/rpc_client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ impl<T: Provider<Network>> ChunkInterpreter for RpcClient<'_, T> {
113113
let parent_block = provider
114114
.get_block_by_hash(block.header.parent_hash)
115115
.await?
116-
.unwrap_or_else(|| {
117-
panic!(
116+
.ok_or_else(|| {
117+
eyre::eyre!(
118118
"parent block for block {} should exist",
119119
block.header.number
120120
)
121-
});
121+
})?;
122122

123123
(
124124
chain_id,

crates/prover-bin/src/zk_circuits_handler/universal.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ pub struct UniversalHandler {
1111
prover: Prover,
1212
}
1313

14+
/// Safe for current usage as `CircuitsHandler` trait (protected inside of Mutex and NEVER extract
15+
/// the instance out by `into_inner`)
1416
unsafe impl Send for UniversalHandler {}
1517

1618
impl UniversalHandler {

0 commit comments

Comments
 (0)