From 86f8504b2c78046ffdc277960e563b160fe13424 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 18 Apr 2023 16:42:09 +0200 Subject: [PATCH] chore: fix typo (#2296) --- crates/rpc/rpc/src/eth/pubsub.rs | 2 +- crates/storage/provider/src/traits/chain.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/rpc/rpc/src/eth/pubsub.rs b/crates/rpc/rpc/src/eth/pubsub.rs index 261f688b4f..a6e464b135 100644 --- a/crates/rpc/rpc/src/eth/pubsub.rs +++ b/crates/rpc/rpc/src/eth/pubsub.rs @@ -221,7 +221,7 @@ where .map(|new_block| { let new_chain = new_block.expect("new block subscription never ends; qed"); new_chain - .commited() + .committed() .map(|c| { c.blocks() .iter() diff --git a/crates/storage/provider/src/traits/chain.rs b/crates/storage/provider/src/traits/chain.rs index 72e89a0205..e714f443eb 100644 --- a/crates/storage/provider/src/traits/chain.rs +++ b/crates/storage/provider/src/traits/chain.rs @@ -19,7 +19,7 @@ pub trait CanonStateSubscriptions: Send + Sync { /// Chain action that is triggered when a new block is imported or old block is reverted. /// and will return all [`crate::PostState`] and [`reth_primitives::SealedBlockWithSenders`] of both -/// reverted and commited blocks. +/// reverted and committed blocks. #[derive(Clone, Debug)] #[allow(missing_docs)] pub enum CanonStateNotification { @@ -57,7 +57,7 @@ impl CanonStateNotification { } /// Get new chain if any. - pub fn commited(&self) -> Option> { + pub fn committed(&self) -> Option> { match self { Self::Reorg { new, .. } => Some(new.clone()), Self::Revert { .. } => None, @@ -77,7 +77,7 @@ impl CanonStateNotification { .extend(old.receipts_with_attachment().into_iter().map(|receipt| (receipt, true))); } // get new receipts - if let Some(new) = self.commited() { + if let Some(new) = self.committed() { receipts .extend(new.receipts_with_attachment().into_iter().map(|receipt| (receipt, false))); }