Skip to content

Commit

Permalink
perf: spawn eth proof on IO pool (#9293)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jul 4, 2024
1 parent e7803f3 commit a81c1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rpc/rpc-eth-api/src/helpers/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub trait EthState: LoadState + SpawnBlocking {
return Err(EthApiError::ExceedsMaxProofWindow)
}

Ok(self.spawn_tracing(move |this| {
Ok(self.spawn_blocking_io(move |this| {
let state = this.state_at_block_id(block_id)?;
let storage_keys = keys.iter().map(|key| key.0).collect::<Vec<_>>();
let proof = state.proof(address, &storage_keys)?;
Expand Down

0 comments on commit a81c1e4

Please sign in to comment.