Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions urbit/lib/sss.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
|= which=[ship dude paths]
^- (quip card:agent:gall subs)
?+ flow=(~(get by sub) which) `0/sub
~ [~[(pine which)] 0/(~(put by sub) which ~)]
[~ ~] [~[(pine which)] 0/sub]
[~ ~ [* %& * *]] [~[(pine which)] 0/sub]
~ [~[(pine ~ which)] 0/(~(put by sub) which ~)]
[~ ~] [~[(pine ~ which)] 0/sub]
[~ ~ [* %& * *]] [~[(pine `+(aeon.u.u.flow) which)] 0/sub]
==
++ quit (corl (lead %0) ~(del by sub)) :: Unsub from [ship dude path].
++ read :: See current subscribed states.
Expand Down Expand Up @@ -138,9 +138,10 @@
:: Non-public facing arms below
::
++ pine
|= [who=ship which=dude where=paths]
|= [when=(unit aeon) who=ship which=dude where=paths]
^- card:agent:gall
:* %pass (zoom scry-request/(scot %p who)^which^where)
=/ when ?~ when ~ (scot %ud u.when)
:* %pass (zoom scry-request/(scot %p who)^which^when^where)
%agent [who which]
%poke sss-to-pub/[result-type `result`[where dap.bowl]]
==
Expand Down