diff --git a/packages/centipede/src/main.rs b/packages/centipede/src/main.rs index b6d3719..f02c7fb 100644 --- a/packages/centipede/src/main.rs +++ b/packages/centipede/src/main.rs @@ -1,8 +1,13 @@ use std::{ - env, error::Error, path::PathBuf, sync::{ + env, + error::Error, + path::PathBuf, + sync::{ atomic::{AtomicBool, Ordering}, mpsc, Arc, - }, thread, time::{Duration, SystemTime} + }, + thread, + time::{Duration, SystemTime}, }; use centipede_control::{Controller, IncomingMessage}; diff --git a/packages/centipede_router/src/config.rs b/packages/centipede_router/src/config.rs index 7544cb2..20aae71 100644 --- a/packages/centipede_router/src/config.rs +++ b/packages/centipede_router/src/config.rs @@ -1,5 +1,8 @@ use std::{ - collections::{HashMap, HashSet}, net::SocketAddr, sync::Arc, time::SystemTime + collections::{HashMap, HashSet}, + net::SocketAddr, + sync::Arc, + time::SystemTime, }; use chacha20poly1305::ChaCha20Poly1305; @@ -88,7 +91,7 @@ pub(crate) fn apply(config: &Router, state: &crate::ConfiguredRouter) -> crate:: .get(id) .filter(|old| old.initialized_at == tun.initialized_at) .map(|old| old.next_sequence_number.clone()) - .unwrap_or_default() + .unwrap_or_default(), }, ) })