fix(metrics): use AtomicU32 for drop counter to support MIPS targets
Also bumps version to 0.4.1.
This commit is contained in:
4 files changed
+10
-10
No files matched your search
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user