update comment (#23314)

This commit is contained in:
Jeff Washington (jwash) 2022-02-23 17:33:06 -06:00 committed by GitHub
parent 99a057927c
commit 227df52213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -1737,9 +1737,8 @@ impl<T: IndexValue> AccountsIndex<T> {
(dirty_pubkeys, insertion_time.load(Ordering::Relaxed))
}
// Updates the given pubkey at the given slot with the new account information.
// Returns true if the pubkey was newly inserted into the index, otherwise, if the
// pubkey updates an existing entry in the index, returns false.
/// Updates the given pubkey at the given slot with the new account information.
/// on return, the index's previous account info may be returned in 'reclaims' depending on 'previous_slot_entry_was_cached'
pub fn upsert(
&self,
slot: Slot,