fix active_scans metric to not swap (#26602)

This commit is contained in:
Jeff Washington (jwash) 2022-07-13 20:11:23 -05:00 committed by GitHub
parent 2b7cc107d8
commit 4dea32e8e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2844,7 +2844,7 @@ impl AccountsDb {
),
(
"active_scans",
self.accounts_index.active_scans.swap(0, Ordering::Relaxed) as i64,
self.accounts_index.active_scans.load(Ordering::Relaxed) as i64,
i64
),
(