mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 04:52:06 +03:00
Merge pull request #4149 from urbit/la/fix-push-hook
push-hook: push out facts to each path only a single time
This commit is contained in:
commit
cd125fc71f
@ -297,13 +297,8 @@
|
||||
|^
|
||||
=/ [=graph:store mark=(unit mark:store)]
|
||||
(~(got by graphs) resource)
|
||||
:: TODO: turn back on assertion once issue with 8-10x facts being
|
||||
:: issued is resolved. Too noisy for now
|
||||
::
|
||||
:: ~| "cannot add duplicate nodes to {<resource>}"
|
||||
:: ?< (check-for-duplicates graph ~(key by nodes))
|
||||
?: (check-for-duplicates graph ~(key by nodes))
|
||||
[~ state]
|
||||
~| "cannot add duplicate nodes to {<resource>}"
|
||||
?< (check-for-duplicates graph ~(key by nodes))
|
||||
=/ =update-log:store (~(got by update-logs) resource)
|
||||
=. update-log
|
||||
(put:orm-log update-log time [%0 time [%add-nodes resource nodes]])
|
||||
|
@ -268,7 +268,6 @@
|
||||
%+ weld
|
||||
(push-updates:hc q.cage.sign)
|
||||
cards
|
||||
|
||||
==
|
||||
++ on-leave
|
||||
|= =path
|
||||
@ -374,6 +373,8 @@
|
||||
=/ prefix=path
|
||||
resource+(en-path:resource u.rid)
|
||||
=/ paths=(list path)
|
||||
%~ tap in
|
||||
%- silt
|
||||
%+ turn
|
||||
(incoming-subscriptions prefix)
|
||||
|=([ship pax=path] pax)
|
||||
|
Loading…
Reference in New Issue
Block a user