diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-05 11:04:00 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-05 11:04:00 +0000 |
| commit | ef7ba7c59b8e0b6369f63b8a46e202693963d92b (patch) | |
| tree | 9a3abe34e41995b02717292050cfb09d4b7d0de1 /src/config.rs | |
| parent | 83ede29fb2ce563fe53ee4dc62334c03c67026cb (diff) | |
fix basic sync tests
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 0ca534c..07e67c8 100644 --- a/src/config.rs +++ b/src/config.rs | |||
| @@ -103,6 +103,11 @@ pub struct Config { | |||
| 103 | /// Number of days to look back for reconnect catchup (default: 3) | 103 | /// Number of days to look back for reconnect catchup (default: 3) |
| 104 | #[arg(long, env = "NGIT_SYNC_RECONNECT_LOOKBACK_DAYS", default_value_t = 3)] | 104 | #[arg(long, env = "NGIT_SYNC_RECONNECT_LOOKBACK_DAYS", default_value_t = 3)] |
| 105 | pub sync_reconnect_lookback_days: u64, | 105 | pub sync_reconnect_lookback_days: u64, |
| 106 | |||
| 107 | /// Maximum startup jitter in milliseconds for sync connections (default: 10000 = 10 seconds) | ||
| 108 | /// Set to 0 to disable jitter (useful for testing) | ||
| 109 | #[arg(long, env = "NGIT_SYNC_STARTUP_JITTER_MS", default_value_t = 10_000)] | ||
| 110 | pub sync_startup_jitter_ms: u64, | ||
| 106 | } | 111 | } |
| 107 | 112 | ||
| 108 | impl Config { | 113 | impl Config { |