Merge remote-tracking branch 'github/pr/724'

This commit is contained in:
William Casarin
2025-02-10 16:52:56 -08:00
3 changed files with 23 additions and 8 deletions

View File

@@ -36,8 +36,9 @@ impl Default for DecksCache {
}
impl DecksCache {
pub fn new(account_to_decks: HashMap<Pubkey, Decks>) -> Self {
pub fn new(mut account_to_decks: HashMap<Pubkey, Decks>) -> Self {
let fallback_pubkey = FALLBACK_PUBKEY();
account_to_decks.entry(fallback_pubkey).or_default();
Self {
account_to_decks,