This commit is contained in:
HaoranYi 2023-02-21 09:59:45 -06:00 committed by GitHub
parent 03652ada69
commit 22f6dfd98e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -230,7 +230,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
// only called in debug code paths
pub fn keys(&self) -> Vec<Pubkey> {
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<Pubkey>>, &evictions_guard);
let keys = self.map_internal.read().unwrap().keys().cloned().collect();