upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/sync/mod.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-11 14:45:56 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-11 14:51:42 +0000
commit30a9acbd35bd4d4fd10fef725314046c65a76fae (patch)
tree32f3fa50eb2f20bf88a07f490d31c86481f28725 /src/sync/mod.rs
parent18ad93f8d0b8ce172c9c227385a21af66a507950 (diff)
docs: simplify grasp-02 doc
Diffstat (limited to 'src/sync/mod.rs')
-rw-r--r--src/sync/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sync/mod.rs b/src/sync/mod.rs
index e17565b..4de5619 100644
--- a/src/sync/mod.rs
+++ b/src/sync/mod.rs
@@ -194,7 +194,7 @@ const CONSOLIDATION_THRESHOLD: usize = 70;
194const CONSOLIDATION_WAIT_TIMEOUT_SECS: u64 = 30; 194const CONSOLIDATION_WAIT_TIMEOUT_SECS: u64 = 30;
195 195
196// ============================================================================= 196// =============================================================================
197// Daily Timer (Phase 7) 197// Daily Timer
198// ============================================================================= 198// =============================================================================
199 199
200/// Run the daily timer for periodic fresh syncs 200/// Run the daily timer for periodic fresh syncs
@@ -258,7 +258,7 @@ async fn run_daily_timer(
258} 258}
259 259
260// ============================================================================= 260// =============================================================================
261// Disconnect Checker (Phase 8) 261// Disconnect Checker
262// ============================================================================= 262// =============================================================================
263 263
264/// Run the disconnect checker for periodic cleanup of empty relays 264/// Run the disconnect checker for periodic cleanup of empty relays
@@ -304,7 +304,6 @@ async fn run_disconnect_checker(
304/// The SyncManager runs as a background task, subscribing to repository 304/// The SyncManager runs as a background task, subscribing to repository
305/// announcements on the local relay and syncing data from external relays 305/// announcements on the local relay and syncing data from external relays
306/// listed in those announcements. 306/// listed in those announcements.
307#[allow(dead_code)] // Fields will be used in later phases
308pub struct SyncManager { 307pub struct SyncManager {
309 /// Bootstrap relay URL for initial sync (optional) 308 /// Bootstrap relay URL for initial sync (optional)
310 bootstrap_relay_url: Option<String>, 309 bootstrap_relay_url: Option<String>,
@@ -1446,7 +1445,7 @@ impl SyncManager {
1446 } 1445 }
1447 1446
1448 // ========================================================================= 1447 // =========================================================================
1449 // Consolidation System (Phase 6) 1448 // Consolidation System
1450 // ========================================================================= 1449 // =========================================================================
1451 1450
1452 /// Get the current filter count for a relay 1451 /// Get the current filter count for a relay