From 22f6dfd98e9c406cf06e6bc45324bfb6cab7fc3f Mon Sep 17 00:00:00 2001 From: HaoranYi Date: Tue, 21 Feb 2023 09:59:45 -0600 Subject: [PATCH] typo (#30393) --- net-utils/src/lib.rs | 2 +- runtime/src/in_mem_accounts_index.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net-utils/src/lib.rs b/net-utils/src/lib.rs index 7870318ef..57d9d14cc 100644 --- a/net-utils/src/lib.rs +++ b/net-utils/src/lib.rs @@ -163,7 +163,7 @@ fn do_verify_reachable_ports( "Received no response at tcp/{}, check your port configuration: {}", port, err ); - // Ugh, std rustc doesn't provide acceptng with timeout or restoring original + // Ugh, std rustc doesn't provide accepting with timeout or restoring original // nonblocking-status of sockets because of lack of getter, only the setter... // So, to close the thread cleanly, just connect from here. // ref: https://github.com/rust-lang/rust/issues/31615 diff --git a/runtime/src/in_mem_accounts_index.rs b/runtime/src/in_mem_accounts_index.rs index c260d3f9f..b8bc422e6 100644 --- a/runtime/src/in_mem_accounts_index.rs +++ b/runtime/src/in_mem_accounts_index.rs @@ -230,7 +230,7 @@ impl InMemAccountsIndex { // only called in debug code paths pub fn keys(&self) -> Vec { Self::update_stat(&self.stats().keys, 1); - // easiest implementation is to load evrything from disk into cache and return the keys + // easiest implementation is to load everything from disk into cache and return the keys let evictions_guard = EvictionsGuard::lock(self); self.put_range_in_cache(&None::<&RangeInclusive>, &evictions_guard); let keys = self.map_internal.read().unwrap().keys().cloned().collect();