diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-04 17:03:40 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-04 17:03:40 +0000 |
| commit | b167f1b2ae7edbcab95554b5203d22d9e372c8b5 (patch) | |
| tree | 39b3bb879302cb6a4eaabded4a5d20f7d0d68ffc /src/http/nip11.rs | |
| parent | fdbc8895e1e9e712882bd854908295a95e7afcb9 (diff) | |
feat(sync): Phase 1 MVP - single relay proactive sync
- Add src/sync/ module with SyncManager
- Add NGIT_SYNC_RELAY_URL config option
- Subscribe to kind 30617 on configured relay
- Validate synced events through Nip34WritePolicy
- Integration test with two TestRelay instances
Diffstat (limited to 'src/http/nip11.rs')
| -rw-r--r-- | src/http/nip11.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/nip11.rs b/src/http/nip11.rs index 1723601..e9e1c25 100644 --- a/src/http/nip11.rs +++ b/src/http/nip11.rs | |||
| @@ -105,6 +105,7 @@ mod tests { | |||
| 105 | metrics_enabled: true, | 105 | metrics_enabled: true, |
| 106 | metrics_connection_per_ip_abuse_threshold: 10, | 106 | metrics_connection_per_ip_abuse_threshold: 10, |
| 107 | metrics_top_n_repos: 10, | 107 | metrics_top_n_repos: 10, |
| 108 | sync_relay_url: None, | ||
| 108 | }; | 109 | }; |
| 109 | 110 | ||
| 110 | let doc = RelayInformationDocument::from_config(&config); | 111 | let doc = RelayInformationDocument::from_config(&config); |
| @@ -139,6 +140,7 @@ mod tests { | |||
| 139 | metrics_enabled: true, | 140 | metrics_enabled: true, |
| 140 | metrics_connection_per_ip_abuse_threshold: 10, | 141 | metrics_connection_per_ip_abuse_threshold: 10, |
| 141 | metrics_top_n_repos: 10, | 142 | metrics_top_n_repos: 10, |
| 143 | sync_relay_url: None, | ||
| 142 | }; | 144 | }; |
| 143 | 145 | ||
| 144 | let doc = RelayInformationDocument::from_config(&config); | 146 | let doc = RelayInformationDocument::from_config(&config); |