aboutsummaryrefslogtreecommitdiff
path: root/src/proxy_config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/proxy_config.rs')
-rw-r--r--src/proxy_config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/proxy_config.rs b/src/proxy_config.rs
index 399b52a..8a64f53 100644
--- a/src/proxy_config.rs
+++ b/src/proxy_config.rs
@@ -50,7 +50,7 @@ pub struct ProxyEntry {
// Counts the number of times this proxy server has been called to
// This implements a round-robin load balancer if there are multiple
// entries for the same host and same path prefix.
- pub calls: atomic::AtomicU64,
+ pub calls: atomic::AtomicI64,
}
impl std::fmt::Display for ProxyEntry {
@@ -69,7 +69,7 @@ impl std::fmt::Display for ProxyEntry {
if !self.add_headers.is_empty() {
write!(f, " +Headers: {:?}", self.add_headers)?;
}
- Ok(())
+ write!(f, " ({})", self.calls.load(atomic::Ordering::Relaxed))
}
}
@@ -125,7 +125,7 @@ fn parse_tricot_tag(
path_prefix,
priority,
add_headers: add_headers.to_vec(),
- calls: atomic::AtomicU64::from(0),
+ calls: atomic::AtomicI64::from(0),
})
}