Skip to content

Commit

Permalink
Merge pull request #165 from rex4539/typos
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
AloeareV authored Jan 23, 2025
2 parents 4017f95 + ca73fd1 commit 6372963
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zaino-state/src/local_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl BlockCacheSubscriber {

if self
.non_finalised_state
.conatins_hash_or_height(hash_or_height)
.contains_hash_or_height(hash_or_height)
.await
{
// Fetch from non-finalised state.
Expand Down
2 changes: 1 addition & 1 deletion zaino-state/src/local_cache/non_finalised_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ impl NonFinalisedStateSubscriber {
}

///
pub async fn conatins_hash_or_height(&self, hash_or_height: HashOrHeight) -> bool {
pub async fn contains_hash_or_height(&self, hash_or_height: HashOrHeight) -> bool {
match hash_or_height {
HashOrHeight::Height(height) => self.heights_to_hashes.contains_key(&height),
HashOrHeight::Hash(hash) => self.hashes_to_blocks.contains_key(&hash),
Expand Down

0 comments on commit 6372963

Please sign in to comment.