chore(svc): replace deprecated fetch_update with try_update (#3407)

Signed-off-by: Qsie <[email protected]>
This commit is contained in:
Qsie authored and GitHub committed 2026-10-11 23:30:31 +02:00
1 parent 74c6fad260
commit f8d3c70a91
5 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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");