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

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

No files matched your search

+1 -1
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)]