mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
chore(svc): replace deprecated fetch_update with try_update (#3407)
Signed-off-by: Qsie <[email protected]>
This commit is contained in:
5 files changed
+5
-5
No files matched your search
@@ -214,7 +214,7 @@ impl UserCaches {
|
||||
async fn invalidate(&self, user_id: i64) {
|
||||
let generation = self
|
||||
.generation(user_id)
|
||||
.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |current| {
|
||||
.try_update(Ordering::SeqCst, Ordering::SeqCst, |current| {
|
||||
current.checked_add(1)
|
||||
})
|
||||
.expect("user cache generation exhausted");
|
||||
|
||||
Reference in new issue
Block a user