Skip to content

Commit

Permalink
wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnaps committed May 7, 2024
1 parent 7787c64 commit 5a3a2a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions limitador/src/storage/atomic_expiring_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ impl AtomicExpiringValue {
self.value_at(SystemTime::now())
}

#[allow(dead_code)]
pub fn add_and_set_expiry(&self, delta: i64, expiry: Duration) -> i64 {
self.expiry.update(expiry);
self.value.fetch_add(delta, Ordering::SeqCst) + delta
Expand Down

0 comments on commit 5a3a2a0

Please sign in to comment.