diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-05 12:03:52 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-05 12:03:52 +0000 |
| commit | 339b0c02f2cec25ae804dc882f5ce7d1dd58b9a6 (patch) | |
| tree | e3d80676913de96c2ac75eb2dc9a8954c88ab633 /docs/explanation | |
| parent | ef7ba7c59b8e0b6369f63b8a46e202693963d92b (diff) | |
rename sunc_bootstrap_relay_url
Diffstat (limited to 'docs/explanation')
| -rw-r--r-- | docs/explanation/grasp-02-proactive-sync.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/explanation/grasp-02-proactive-sync.md b/docs/explanation/grasp-02-proactive-sync.md index 98531ec..666b048 100644 --- a/docs/explanation/grasp-02-proactive-sync.md +++ b/docs/explanation/grasp-02-proactive-sync.md | |||
| @@ -758,7 +758,8 @@ The implementation closely follows the design document with the following comple | |||
| 758 | 758 | ||
| 759 | #### Phase 1: Basic Sync (commit b167f1b) | 759 | #### Phase 1: Basic Sync (commit b167f1b) |
| 760 | - [`SyncManager`](../../src/sync/manager.rs) - Main coordinator for proactive sync | 760 | - [`SyncManager`](../../src/sync/manager.rs) - Main coordinator for proactive sync |
| 761 | - Single relay sync via `NGIT_SYNC_RELAY_URL` configuration | 761 | - Bootstrap relay sync via `NGIT_SYNC_BOOTSTRAP_RELAY_URL` configuration |
| 762 | - Dynamic relay discovery from repository announcements that list our service | ||
| 762 | - Event validation through existing [`Nip34WritePolicy`](../../src/nostr/builder.rs) | 763 | - Event validation through existing [`Nip34WritePolicy`](../../src/nostr/builder.rs) |
| 763 | 764 | ||
| 764 | #### Phase 2: Three-Layer Filters (commit bf558b0) | 765 | #### Phase 2: Three-Layer Filters (commit bf558b0) |
| @@ -844,12 +845,14 @@ All configuration via environment variables or CLI flags: | |||
| 844 | 845 | ||
| 845 | | Option | Type | Default | Description | | 846 | | Option | Type | Default | Description | |
| 846 | |--------|------|---------|-------------| | 847 | |--------|------|---------|-------------| |
| 847 | | `NGIT_SYNC_RELAY_URL` | String | None | Primary sync relay URL | | 848 | | `NGIT_SYNC_BOOTSTRAP_RELAY_URL` | String | None | Bootstrap relay URL for initial sync | |
| 848 | | `NGIT_SYNC_MAX_BACKOFF_SECS` | u64 | 3600 | Max backoff delay (seconds) | | 849 | | `NGIT_SYNC_MAX_BACKOFF_SECS` | u64 | 3600 | Max backoff delay (seconds) | |
| 849 | | `NGIT_SYNC_STARTUP_DELAY_SECS` | u64 | 30 | Catchup delay after startup | | 850 | | `NGIT_SYNC_STARTUP_DELAY_SECS` | u64 | 30 | Catchup delay after startup | |
| 850 | | `NGIT_SYNC_RECONNECT_DELAY_SECS` | u64 | 10 | Catchup delay after reconnect | | 851 | | `NGIT_SYNC_RECONNECT_DELAY_SECS` | u64 | 10 | Catchup delay after reconnect | |
| 851 | | `NGIT_SYNC_RECONNECT_LOOKBACK_DAYS` | u64 | 3 | Days to look back on reconnect | | 852 | | `NGIT_SYNC_RECONNECT_LOOKBACK_DAYS` | u64 | 3 | Days to look back on reconnect | |
| 852 | 853 | ||
| 854 | **Note:** Additional relays are automatically discovered from repository announcements (kind 30617) that list our service domain. The bootstrap relay provides an initial sync source but is not required - sync will discover relays from stored announcements. | ||
| 855 | |||
| 853 | ### Module Structure (As Implemented) | 856 | ### Module Structure (As Implemented) |
| 854 | 857 | ||
| 855 | ``` | 858 | ``` |