upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 69a160a..5e74471 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -109,6 +109,11 @@ pub struct Config {
109 /// Set to 0 to disable jitter (useful for testing) 109 /// Set to 0 to disable jitter (useful for testing)
110 #[arg(long, env = "NGIT_SYNC_STARTUP_JITTER_MS", default_value_t = 10_000)] 110 #[arg(long, env = "NGIT_SYNC_STARTUP_JITTER_MS", default_value_t = 10_000)]
111 pub sync_startup_jitter_ms: u64, 111 pub sync_startup_jitter_ms: u64,
112
113 /// Interval in seconds for checking disconnected relays and attempting reconnection (default: 60)
114 /// Set to lower value for faster reconnection testing
115 #[arg(long, env = "NGIT_SYNC_DISCONNECT_CHECK_INTERVAL_SECS", default_value_t = 60)]
116 pub sync_disconnect_check_interval_secs: u64,
112} 117}
113 118
114impl Config { 119impl Config {
@@ -170,6 +175,7 @@ impl Config {
170 sync_reconnect_delay_secs: 10, 175 sync_reconnect_delay_secs: 10,
171 sync_reconnect_lookback_days: 3, 176 sync_reconnect_lookback_days: 3,
172 sync_startup_jitter_ms: 10_000, 177 sync_startup_jitter_ms: 10_000,
178 sync_disconnect_check_interval_secs: 60,
173 } 179 }
174 } 180 }
175} 181}