mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 23:18:24 +00:00
fix: downgrade EOSE race condition warning to debug level
During relay disconnect, EOSE messages may arrive after the relay has been removed from pending_sync_index. This creates a benign race condition that was logged as a warning. Changes: - Downgrade from warn! to debug! in handle_eose() (src/sync/mod.rs:632) - Add clarifying comment explaining this occurs during disconnect - Update message to indicate this is expected behavior Discovered via production sync testing against wss://git.shakespeare.diy
This commit is contained in:
+3
-2
@@ -628,10 +628,11 @@ impl SyncManager {
|
||||
let mut pending = self.pending_sync_index.write().await;
|
||||
|
||||
let Some(batches) = pending.get_mut(relay_url) else {
|
||||
tracing::warn!(
|
||||
// This can happen during disconnect if EOSE arrives after relay cleanup
|
||||
tracing::debug!(
|
||||
relay = %relay_url,
|
||||
sub_id = %sub_id,
|
||||
"EOSE received for unknown relay"
|
||||
"EOSE received for unknown relay (likely during disconnect)"
|
||||
);
|
||||
return;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user