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

Commit

Permalink
remove type cast in scan metric report (#32704)
Browse files Browse the repository at this point in the history
Co-authored-by: HaoranYi <haoran.yi@solana.com>
  • Loading branch information
HaoranYi and HaoranYi authored Aug 4, 2023
1 parent 226d7d9 commit 533f42d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3490,17 +3490,17 @@ impl AccountsDb {
),
(
"roots_added",
self.accounts_index.roots_added.swap(0, Ordering::Relaxed) as i64,
self.accounts_index.roots_added.swap(0, Ordering::Relaxed),
i64
),
(
"roots_removed",
self.accounts_index.roots_removed.swap(0, Ordering::Relaxed) as i64,
self.accounts_index.roots_removed.swap(0, Ordering::Relaxed),
i64
),
(
"active_scans",
self.accounts_index.active_scans.load(Ordering::Relaxed) as i64,
self.accounts_index.active_scans.load(Ordering::Relaxed),
i64
),
(
Expand Down

0 comments on commit 533f42d

Please sign in to comment.