From 7a10ca4010dbdf301b3160b3e040483902d24750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos=20Bezerra?= Date: Thu, 1 Aug 2024 13:11:06 -0300 Subject: [PATCH] fmt --- src/eth/storage/rocks/rocks_state.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/eth/storage/rocks/rocks_state.rs b/src/eth/storage/rocks/rocks_state.rs index 743cddad9..6516f6572 100644 --- a/src/eth/storage/rocks/rocks_state.rs +++ b/src/eth/storage/rocks/rocks_state.rs @@ -370,13 +370,12 @@ impl RocksStorageState { BlockFilter::Latest | BlockFilter::Pending => self.blocks_by_number.last_value(), BlockFilter::Earliest => self.blocks_by_number.first_value(), BlockFilter::Number(block_number) => self.blocks_by_number.get(&(*block_number).into()), - BlockFilter::Hash(block_hash) => { + BlockFilter::Hash(block_hash) => if let Some(block_number) = self.blocks_by_hash.get(&(*block_hash).into())? { self.blocks_by_number.get(&block_number) } else { Ok(None) - } - } + }, }; block.map(|block_option| block_option.map(|block| block.into_inner().into()))