typo (#30393)
This commit is contained in:
parent
03652ada69
commit
22f6dfd98e
|
@ -163,7 +163,7 @@ fn do_verify_reachable_ports(
|
||||||
"Received no response at tcp/{}, check your port configuration: {}",
|
"Received no response at tcp/{}, check your port configuration: {}",
|
||||||
port, err
|
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...
|
// nonblocking-status of sockets because of lack of getter, only the setter...
|
||||||
// So, to close the thread cleanly, just connect from here.
|
// So, to close the thread cleanly, just connect from here.
|
||||||
// ref: https://github.com/rust-lang/rust/issues/31615
|
// ref: https://github.com/rust-lang/rust/issues/31615
|
||||||
|
|
|
@ -230,7 +230,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
|
||||||
// only called in debug code paths
|
// only called in debug code paths
|
||||||
pub fn keys(&self) -> Vec<Pubkey> {
|
pub fn keys(&self) -> Vec<Pubkey> {
|
||||||
Self::update_stat(&self.stats().keys, 1);
|
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);
|
let evictions_guard = EvictionsGuard::lock(self);
|
||||||
self.put_range_in_cache(&None::<&RangeInclusive<Pubkey>>, &evictions_guard);
|
self.put_range_in_cache(&None::<&RangeInclusive<Pubkey>>, &evictions_guard);
|
||||||
let keys = self.map_internal.read().unwrap().keys().cloned().collect();
|
let keys = self.map_internal.read().unwrap().keys().cloned().collect();
|
||||||
|
|
Loading…
Reference in New Issue