From b3379cc108d6eed98cb0010e6f1ddca94aba83a2 Mon Sep 17 00:00:00 2001 From: polwex Date: Tue, 18 Nov 2025 07:50:36 +0700 Subject: implemented proper handling of EOSE events and nostr request batching --- app/sur/nostr.hoon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/sur/nostr.hoon') diff --git a/app/sur/nostr.hoon b/app/sur/nostr.hoon index 2f8296b..b363cb9 100644 --- a/app/sur/nostr.hoon +++ b/app/sur/nostr.hoon @@ -33,7 +33,9 @@ $: start=@da reqs=(map sub-id event-stats) == +$ event-stats - [filters=(list filter) received=event-count] + :: if not ongoing we kill the subscription on %eose + :: if chunked we trigger a new subscription on %eose + [filters=(list filter) received=event-count ongoing=? chunked=(list filter)] +$ sub-id @t +$ event-count @ud -- cgit v1.2.3