diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-11 13:09:39 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-11 13:09:39 +0000 |
| commit | 7146ee550944c71a4e48018a34820ce9a9d99f95 (patch) | |
| tree | 19400e16369f32630d193744de32eefeeacbc69e /docs/reference | |
| parent | a56e12e0aed87c68fd49b453b5c3dc0bfbf81285 (diff) | |
fix: classify sync events as startup/live based on EOSE, not relay type
Previously, events were classified as 'startup' or 'live' based on whether
they came from a bootstrap relay (is_bootstrap flag). This meant ALL events
from bootstrap relays were counted as 'startup', even events received after
the initial sync completed.
Now events are classified based on whether EOSE (End Of Stored Events) has
been received for that connection:
- Events BEFORE EOSE → 'startup' (historical events during initial sync)
- Events AFTER EOSE → 'live' (new events via real-time subscription)
This enables the test_live_sync_event_count test which validates that events
received after sync connection is established are counted as live events.
Also removed the #[ignore] attribute from test_live_sync_event_count since
the metrics are now properly wired up.
Diffstat (limited to 'docs/reference')
0 files changed, 0 insertions, 0 deletions