mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +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
@@ -175,7 +175,7 @@ impl CacheTelemetry {
|
||||
|
||||
fn next_generation(&self) -> u64 {
|
||||
self.next_generation
|
||||
.fetch_update(METRICS_ORDERING, METRICS_ORDERING, |generation| {
|
||||
.try_update(METRICS_ORDERING, METRICS_ORDERING, |generation| {
|
||||
generation.checked_add(1)
|
||||
})
|
||||
.expect("GIF cache generation exhausted")
|
||||
|
||||
Reference in new issue
Block a user