mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-04-23 00:27:06 +08:00
chore: update Rust to 2024 edition (#2066)
This commit is contained in:
@@ -162,7 +162,10 @@ impl WebClient {
|
||||
if secure_mode {
|
||||
connected.store(false, Ordering::Release);
|
||||
let wait = 1;
|
||||
log::warn!("secure-mode enabled but server does not support encryption, retrying in {} seconds...", wait);
|
||||
log::warn!(
|
||||
"secure-mode enabled but server does not support encryption, retrying in {} seconds...",
|
||||
wait
|
||||
);
|
||||
tokio::time::sleep(std::time::Duration::from_secs(wait)).await;
|
||||
continue;
|
||||
}
|
||||
@@ -238,7 +241,7 @@ pub async fn run_web_client(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use std::sync::{atomic::AtomicBool, Arc};
|
||||
use std::sync::{Arc, atomic::AtomicBool};
|
||||
|
||||
use crate::instance_manager::NetworkInstanceManager;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user