From 227df522134c282e8f6ed11ee77fabab56958db0 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Wed, 23 Feb 2022 17:33:06 -0600 Subject: [PATCH] update comment (#23314) --- runtime/src/accounts_index.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index 337cc280e7..8ecdfdde29 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -1737,9 +1737,8 @@ impl AccountsIndex { (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,