mirror of
https://github.com/urbit/shrub.git
synced 2024-12-11 11:02:25 +03:00
notify: rework subscription wires and rewatch
This commit is contained in:
parent
1f0465c1d6
commit
4c47bc3ba0
@ -73,10 +73,13 @@
|
||||
?- -.old
|
||||
::
|
||||
%2
|
||||
=/ =wire /hark/updates
|
||||
=/ upd=wire /hark/updates
|
||||
=/ not=wire /hark/notes
|
||||
=/ =dock [our.bowl %hark-store]
|
||||
=? cards !(~(has by wex.bowl) [wire dock])
|
||||
:_(cards [%pass wire %agent dock %watch /updates])
|
||||
=? cards !(~(has by wex.bowl) [upd dock]) :: rewatch notes
|
||||
:_(cards [%pass upd %agent dock %watch /updates])
|
||||
=? cards !(~(has by wex.bowl) [not dock]) :: rewatch updates
|
||||
:_(cards [%pass not %agent dock %watch /notes])
|
||||
[(flop cards) this(state old)]
|
||||
::
|
||||
?(%0 %1)
|
||||
@ -243,7 +246,7 @@
|
||||
::
|
||||
:: subscription from client to their own hark-store
|
||||
::
|
||||
[%hark *]
|
||||
[%hark @ ~]
|
||||
?+ -.sign (on-agent:def wire sign)
|
||||
%fact
|
||||
?. ?=(%hark-update p.cage.sign)
|
||||
@ -256,7 +259,7 @@
|
||||
::
|
||||
%kick
|
||||
:_ this
|
||||
[%pass /hark %agent [our.bowl %hark-store] %watch /updates]~
|
||||
[%pass wire %agent [our.bowl %hark-store] %watch t.wire]~
|
||||
==
|
||||
::
|
||||
:: subscription from provider to client
|
||||
|
Loading…
Reference in New Issue
Block a user