diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-04 18:30:18 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-04 18:30:18 +0000 |
| commit | 950c2e4e68448d2abcad90a31bfffaca6d7bc47e (patch) | |
| tree | 6893c0b26234b2a809c6379492a7377875387f73 /src/http | |
| parent | a19ff57e72d9b82a722e14ae365da7f8c2d87e87 (diff) | |
feat(sync): Phase 5 - negentropy catchup (NIP-77)
- Add NegentropyService for set reconciliation
- Implement startup catchup with warm-up delay
- Implement reconnect catchup (last 3 days)
- Add daily catchup schedule with stagger
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/nip11.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/nip11.rs b/src/http/nip11.rs index 22e5b22..5d362bb 100644 --- a/src/http/nip11.rs +++ b/src/http/nip11.rs | |||
| @@ -107,6 +107,9 @@ mod tests { | |||
| 107 | metrics_top_n_repos: 10, | 107 | metrics_top_n_repos: 10, |
| 108 | sync_relay_url: None, | 108 | sync_relay_url: None, |
| 109 | sync_max_backoff_secs: 3600, | 109 | sync_max_backoff_secs: 3600, |
| 110 | sync_startup_delay_secs: 30, | ||
| 111 | sync_reconnect_delay_secs: 10, | ||
| 112 | sync_reconnect_lookback_days: 3, | ||
| 110 | }; | 113 | }; |
| 111 | 114 | ||
| 112 | let doc = RelayInformationDocument::from_config(&config); | 115 | let doc = RelayInformationDocument::from_config(&config); |
| @@ -143,6 +146,9 @@ mod tests { | |||
| 143 | metrics_top_n_repos: 10, | 146 | metrics_top_n_repos: 10, |
| 144 | sync_relay_url: None, | 147 | sync_relay_url: None, |
| 145 | sync_max_backoff_secs: 3600, | 148 | sync_max_backoff_secs: 3600, |
| 149 | sync_startup_delay_secs: 30, | ||
| 150 | sync_reconnect_delay_secs: 10, | ||
| 151 | sync_reconnect_lookback_days: 3, | ||
| 146 | }; | 152 | }; |
| 147 | 153 | ||
| 148 | let doc = RelayInformationDocument::from_config(&config); | 154 | let doc = RelayInformationDocument::from_config(&config); |