fix: update atomic monitoring API for Rust 1.99
This commit is contained in:
@@ -102,7 +102,7 @@ impl MetricsStore {
|
|||||||
// Use saturating semantics to avoid underflow
|
// Use saturating semantics to avoid underflow
|
||||||
let _ = self
|
let _ = self
|
||||||
.ws_connections
|
.ws_connections
|
||||||
.fetch_update(Ordering::Relaxed, Ordering::Relaxed, |v| {
|
.try_update(Ordering::Relaxed, Ordering::Relaxed, |v| {
|
||||||
if v > 0 {
|
if v > 0 {
|
||||||
Some(v - 1)
|
Some(v - 1)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user