fix(metrics): use AtomicU32 for drop counter to support MIPS targets

Also bumps version to 0.4.1.
This commit is contained in:
Nils Andreas Svee committed 2026-04-14 02:14:55 +07:00
1 parent 99e80c381d
commit 8739ed4419
4 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -19,7 +19,7 @@ use ::log::{debug, info};
use std::collections::HashMap;
use std::net::IpAddr;
use std::str::FromStr;
use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
use std::sync::atomic::{AtomicBool, AtomicU32, Ordering};
use std::sync::mpsc::{channel, sync_channel, RecvTimeoutError};
use std::sync::{Arc, Mutex, RwLock};
use std::thread::sleep;
@@ -95,7 +95,7 @@ fn main() -> anyhow::Result<()> {
let (error_tx, error_rx) = channel::<anyhow::Error>();
let (reselect_tx, reselect_rx) = channel();
let dropped = Arc::new(AtomicU64::new(0));
let dropped = Arc::new(AtomicU32::new(0));
let (metrics_tx, metrics_thread_handle) = if config.observability_enabled {
let (tx, rx) = sync_channel(1000);