ChatGPT Codex 5.2 xhigh refactored > 45min
This commit is contained in:
@@ -3,10 +3,13 @@
|
||||
use std::time::Duration;
|
||||
|
||||
/// Interval between peer ping checks (seconds).
|
||||
pub const PEER_PING_INTERVAL_SECS: u64 = 5;
|
||||
pub const PEER_PING_INTERVAL_SECS: u64 = 20;
|
||||
|
||||
/// Minimum idle time before pinging a peer (seconds).
|
||||
pub const PEER_PING_IDLE_SECS: u64 = 30;
|
||||
|
||||
/// Timeout after which a peer is considered stale (seconds).
|
||||
pub const PEER_STALE_TIMEOUT_SECS: u64 = 12;
|
||||
pub const PEER_STALE_TIMEOUT_SECS: u64 = 90;
|
||||
|
||||
/// Size of each download chunk (32 MB).
|
||||
pub const CHUNK_SIZE: u64 = 32 * 1024 * 1024;
|
||||
@@ -15,7 +18,7 @@ pub const CHUNK_SIZE: u64 = 32 * 1024 * 1024;
|
||||
pub const MAX_RETRY_COUNT: usize = 3;
|
||||
|
||||
/// Interval for local game directory monitoring (seconds).
|
||||
pub const LOCAL_GAME_MONITOR_INTERVAL_SECS: u64 = 5;
|
||||
pub const LOCAL_GAME_MONITOR_INTERVAL_SECS: u64 = 15;
|
||||
|
||||
/// TLS certificate for QUIC connections.
|
||||
pub static CERT_PEM: &str = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../cert.pem"));
|
||||
|
||||
Reference in New Issue
Block a user