refactor: replace static with const for global constants (#494)

This commit is contained in:
Integral
2024-12-07 17:54:53 +08:00
committed by GitHub
parent 2f246537df
commit 772db7422f
3 changed files with 6 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ type Sender = mpsc::UnboundedSender<Data>;
type Receiver = mpsc::UnboundedReceiver<Data>;
static ROTATION_RELAY_SERVER: AtomicUsize = AtomicUsize::new(0);
type RelayServers = Vec<String>;
static CHECK_RELAY_TIMEOUT: u64 = 3_000;
const CHECK_RELAY_TIMEOUT: u64 = 3_000;
static ALWAYS_USE_RELAY: AtomicBool = AtomicBool::new(false);
#[derive(Clone)]