diff options
Diffstat (limited to 'src/sync/mod.rs')
| -rw-r--r-- | src/sync/mod.rs | 11 |
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; | |||
| 32 | pub use negentropy::NegentropyService; | 32 | pub use negentropy::NegentropyService; |
| 33 | pub use subscription::SubscriptionManager; | 33 | pub use subscription::SubscriptionManager; |
| 34 | 34 | ||
| 35 | use 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 | 37 | pub 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. | ||
| 41 | pub 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) |
| 45 | pub const KIND_REPOSITORY_STATE: u16 = 30617; \ No newline at end of file | 40 | pub const KIND_REPOSITORY_STATE: u16 = 30617; \ No newline at end of file |