upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/tutorials
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-11 13:09:39 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-11 13:09:39 +0000
commit7146ee550944c71a4e48018a34820ce9a9d99f95 (patch)
tree19400e16369f32630d193744de32eefeeacbc69e /docs/tutorials
parenta56e12e0aed87c68fd49b453b5c3dc0bfbf81285 (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/tutorials')
0 files changed, 0 insertions, 0 deletions