Files
notedeck/crates
Claude dc48b53339 Fix unknown EOSE subid warnings for account subscriptions
This commit fixes the "got unknown eose subid" warnings that were
appearing in the logs when relays sent EOSE messages for account-level
subscriptions (relay list, mute list, contacts list).

Root cause:
- Account subscriptions are created during Accounts initialization and
  sent to all relays via pool.subscribe()
- When new relays connect later, send_initial_filters() re-sends these
  subscription IDs to the new relay
- However, these subscription IDs were never registered in the
  damus.subscriptions.subs HashMap
- When EOSE messages arrived for these subscriptions, handle_eose()
  couldn't find them and logged warnings

Solution:
- Added is_account_sub() method to AccountSubs and Accounts to check if
  a subscription ID belongs to account subscriptions
- Modified handle_eose() to check if unknown subscription IDs are
  account subscriptions before logging warnings
- Account subscriptions are now silently ignored in EOSE handling since
  they're managed separately

This eliminates the spurious warnings while preserving warnings for
genuinely unknown subscription IDs.
2025-11-14 05:58:34 +00:00
..
2025-11-06 21:36:06 -08:00
2025-11-04 14:53:10 -08:00
2025-04-21 13:16:18 -07:00