upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 97a14eb..6d8b4dd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -37,7 +37,9 @@ async fn main() -> Result<()> {
37 // Initialize metrics if enabled 37 // Initialize metrics if enabled
38 let metrics = if config.metrics_enabled { 38 let metrics = if config.metrics_enabled {
39 info!("Metrics enabled on /metrics endpoint"); 39 info!("Metrics enabled on /metrics endpoint");
40 Some(Arc::new(Metrics::new(config.metrics_connection_per_ip_abuse_threshold))) 40 Some(Arc::new(Metrics::new(
41 config.metrics_connection_per_ip_abuse_threshold,
42 )))
41 } else { 43 } else {
42 info!("Metrics disabled"); 44 info!("Metrics disabled");
43 None 45 None
@@ -65,7 +67,10 @@ async fn main() -> Result<()> {
65 ); 67 );
66 68
67 if config.sync_bootstrap_relay_url.is_some() { 69 if config.sync_bootstrap_relay_url.is_some() {
68 info!("Starting proactive sync with bootstrap relay: {:?}", config.sync_bootstrap_relay_url); 70 info!(
71 "Starting proactive sync with bootstrap relay: {:?}",
72 config.sync_bootstrap_relay_url
73 );
69 } else { 74 } else {
70 info!("Proactive sync enabled (will discover relays from stored announcements)"); 75 info!("Proactive sync enabled (will discover relays from stored announcements)");
71 } 76 }