Skip to content

Commit

Permalink
style: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
max-niederman committed Apr 23, 2024
1 parent 7e3f54d commit 00f8b9e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 7 additions & 2 deletions packages/centipede/src/main.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
7 changes: 5 additions & 2 deletions packages/centipede_router/src/config.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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(),
},
)
})
Expand Down

0 comments on commit 00f8b9e

Please sign in to comment.