diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-11 11:57:36 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-11 11:57:36 +0000 |
| commit | 4941490233a728bc7c64fa80a53d15f772a1219f (patch) | |
| tree | 7fc1bbf6114deb29b5a736b467abf785ea915f02 /src/http | |
| parent | 6cd7535f2d5f65477ef11b17a4661745ec3a2881 (diff) | |
sync: add sync_base_backoff_secs config for better testing
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/nip11.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/nip11.rs b/src/http/nip11.rs index 80165ee..19d482f 100644 --- a/src/http/nip11.rs +++ b/src/http/nip11.rs | |||
| @@ -111,6 +111,8 @@ mod tests { | |||
| 111 | sync_reconnect_delay_secs: 10, | 111 | sync_reconnect_delay_secs: 10, |
| 112 | sync_reconnect_lookback_days: 3, | 112 | sync_reconnect_lookback_days: 3, |
| 113 | sync_startup_jitter_ms: 10_000, | 113 | sync_startup_jitter_ms: 10_000, |
| 114 | sync_disconnect_check_interval_secs: 60, | ||
| 115 | sync_base_backoff_secs: 5, | ||
| 114 | }; | 116 | }; |
| 115 | 117 | ||
| 116 | let doc = RelayInformationDocument::from_config(&config); | 118 | let doc = RelayInformationDocument::from_config(&config); |
| @@ -151,6 +153,8 @@ mod tests { | |||
| 151 | sync_reconnect_delay_secs: 10, | 153 | sync_reconnect_delay_secs: 10, |
| 152 | sync_reconnect_lookback_days: 3, | 154 | sync_reconnect_lookback_days: 3, |
| 153 | sync_startup_jitter_ms: 10_000, | 155 | sync_startup_jitter_ms: 10_000, |
| 156 | sync_disconnect_check_interval_secs: 60, | ||
| 157 | sync_base_backoff_secs: 5, | ||
| 154 | }; | 158 | }; |
| 155 | 159 | ||
| 156 | let doc = RelayInformationDocument::from_config(&config); | 160 | let doc = RelayInformationDocument::from_config(&config); |