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:
Diffstat (limited to 'src/sync/mod.rs')
-rw-r--r--src/sync/mod.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/sync/mod.rs b/src/sync/mod.rs
index 67d389e..17418d0 100644
--- a/src/sync/mod.rs
+++ b/src/sync/mod.rs
@@ -32,14 +32,9 @@ pub use metrics::SyncMetrics;
32pub use negentropy::NegentropyService; 32pub use negentropy::NegentropyService;
33pub use subscription::SubscriptionManager; 33pub use subscription::SubscriptionManager;
34 34
35use std::net::SocketAddr; 35// Re-export default sync source address for backward compatibility with modules like negentropy.rs
36 36// Manager.rs derives sync_source_addr from config.bind_address at runtime
37/// Synthetic source address used for synced events 37pub use manager::DEFAULT_SYNC_SOURCE_ADDR as SYNC_SOURCE_ADDR;
38///
39/// This distinguishes synced events from directly-submitted events in logs and metrics.
40/// Uses 127.0.0.2:0 as a recognizable "synced event" marker.
41pub const SYNC_SOURCE_ADDR: SocketAddr =
42 SocketAddr::new(std::net::IpAddr::V4(std::net::Ipv4Addr::new(127, 0, 0, 2)), 0);
43 38
44/// Kind for repository state events (NIP-34) 39/// Kind for repository state events (NIP-34)
45pub const KIND_REPOSITORY_STATE: u16 = 30617; \ No newline at end of file 40pub const KIND_REPOSITORY_STATE: u16 = 30617; \ No newline at end of file