mirror of
https://github.com/telemt/telemt.git
synced 2026-09-13 22:14:08 +03:00
Rustfmt
This commit is contained in:
@@ -292,7 +292,8 @@ impl Stats {
|
||||
}
|
||||
/// Returns the count of blocking writer byte-budget waits.
|
||||
pub fn get_me_writer_byte_budget_wait_total(&self) -> u64 {
|
||||
self.me_writer_byte_budget_wait_total.load(Ordering::Relaxed)
|
||||
self.me_writer_byte_budget_wait_total
|
||||
.load(Ordering::Relaxed)
|
||||
}
|
||||
/// Returns the count of writer byte-budget wait timeouts.
|
||||
pub fn get_me_writer_byte_budget_timeout_total(&self) -> u64 {
|
||||
|
||||
@@ -114,11 +114,11 @@ impl Stats {
|
||||
);
|
||||
}
|
||||
pub(crate) fn release_me_writer_byte_budget_inflight_bytes(&self, bytes: u64) {
|
||||
let _ = self.me_writer_byte_budget_inflight_bytes_gauge.fetch_update(
|
||||
Ordering::Relaxed,
|
||||
Ordering::Relaxed,
|
||||
|current| Some(current.saturating_sub(bytes)),
|
||||
);
|
||||
let _ = self
|
||||
.me_writer_byte_budget_inflight_bytes_gauge
|
||||
.fetch_update(Ordering::Relaxed, Ordering::Relaxed, |current| {
|
||||
Some(current.saturating_sub(bytes))
|
||||
});
|
||||
}
|
||||
pub(crate) fn increment_me_writer_byte_budget_wait_total(&self) {
|
||||
if self.telemetry_me_allows_normal() {
|
||||
|
||||
Reference in New Issue
Block a user