upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/sync/relay_connection.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-09 22:02:02 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-09 22:02:02 +0000
commit1079db274ed97fc84f7a6ca756707e5fa30cd3c9 (patch)
tree10b6e0bf7b187d5d035586b46043df511c3ccddd /src/sync/relay_connection.rs
parentd5a15c53db5d232173d7fb5379ce047dcee30a14 (diff)
fix: downgrade negentropy timeout warning to debug level
Negentropy diff timeouts are expected when relays don't support NIP-77. The relay responds with NOTICE 'unknown envelope label' and the timeout is hit before we recognize this is unsupported rather than a failure. Changes: - Downgrade from warn! to debug! in negentropy_sync_filter() (src/sync/relay_connection.rs:493) - Add comment explaining timeouts are common for non-NIP-77 relays - Update message to clarify timeout typically means no NIP-77 support The existing fallback mechanism (lines 505-509) properly handles this case and logs a one-time warning about falling back to REQ+EOSE. Discovered via production sync testing against wss://git.shakespeare.diy
Diffstat (limited to 'src/sync/relay_connection.rs')
-rw-r--r--src/sync/relay_connection.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sync/relay_connection.rs b/src/sync/relay_connection.rs
index b86d298..e57e06c 100644
--- a/src/sync/relay_connection.rs
+++ b/src/sync/relay_connection.rs
@@ -486,11 +486,12 @@ impl RelayConnection {
486 ); 486 );
487 487
488 // Check for any failures 488 // Check for any failures
489 // Note: Timeouts are common for relays without NIP-77 support
489 if !output.failed.is_empty() { 490 if !output.failed.is_empty() {
490 tracing::warn!( 491 tracing::debug!(
491 relay = %self.url, 492 relay = %self.url,
492 failures = ?output.failed, 493 failures = ?output.failed,
493 "Some relays failed during negentropy diff" 494 "Negentropy diff had failures (timeout usually means relay doesn't support NIP-77)"
494 ); 495 );
495 } 496 }
496 497