Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
rename enum
Browse files Browse the repository at this point in the history
  • Loading branch information
tao-stones committed Sep 6, 2023
1 parent e99bc70 commit 456dcbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/src/prioritization_fee_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ enum CacheServiceUpdate {
transaction_fee: u64,
writable_accounts: Arc<Vec<Pubkey>>,
},
BankFrozen {
BankFinalized {
slot: Slot,
bank_id: BankId,
},
Expand Down Expand Up @@ -277,7 +277,7 @@ impl PrioritizationFeeCache {
/// by pruning irrelevant accounts to save space, and marking its availability for queries.
pub fn finalize_priority_fee(&self, slot: Slot, bank_id: BankId) {
self.sender
.send(CacheServiceUpdate::BankFrozen { slot, bank_id })
.send(CacheServiceUpdate::BankFinalized { slot, bank_id })
.unwrap_or_else(|err| {
warn!(
"prioritization fee cache signalling bank frozen failed: {:?}",
Expand Down Expand Up @@ -369,7 +369,7 @@ impl PrioritizationFeeCache {
writable_accounts,
metrics.clone(),
),
CacheServiceUpdate::BankFrozen { slot, bank_id } => {
CacheServiceUpdate::BankFinalized { slot, bank_id } => {
Self::finalize_slot(cache.clone(), &slot, &bank_id, metrics.clone());

metrics.report(slot);
Expand Down

0 comments on commit 456dcbb

Please sign in to comment.