Skip to content

Commit

Permalink
Fix gauge guard add
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload committed Mar 8, 2024
1 parent 23487e0 commit b290a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickwit/quickwit-common/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ impl GaugeGuard {
}

pub fn add(&mut self, delta: i64) {
self.gauge.add(delta);
self.delta += delta;
self.gauge.add(self.delta);
}

pub fn sub(&mut self, delta: i64) {
self.delta -= delta;
self.gauge.sub(delta);
self.delta -= delta;
}
}

Expand Down

0 comments on commit b290a10

Please sign in to comment.