summaryrefslogtreecommitdiff
path: root/app/sur/nostr.hoon
diff options
context:
space:
mode:
Diffstat (limited to 'app/sur/nostr.hoon')
-rw-r--r--app/sur/nostr.hoon10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/sur/nostr.hoon b/app/sur/nostr.hoon
index b363cb9..b8f1e7d 100644
--- a/app/sur/nostr.hoon
+++ b/app/sur/nostr.hoon
@@ -33,9 +33,13 @@ $: start=@da
reqs=(map sub-id event-stats)
==
+$ event-stats
- :: if not ongoing we kill the subscription on %eose
+$: filters=(list filter)
+ received=event-count
+ :: if not ongoing we kill the subscription on %eose. If ongoing we turn to .y after %eose
+ ongoing=(unit ?)
:: if chunked we trigger a new subscription on %eose
- [filters=(list filter) received=event-count ongoing=? chunked=(list filter)]
+ chunked=(list filter)
+==
+$ sub-id @t
+$ event-count @ud
@@ -48,7 +52,7 @@ $: sub-id=@t
$: ids=(unit (set @ux))
authors=(unit (set @ux))
kinds=(unit (set @ud))
- tags=(unit (map @t (set @t)))
+ tags=(unit (map @t (list @t)))
since=(unit @da)
until=(unit @da)
limit=(unit @ud)