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:
L 2020-12-14 17:57:08 -06:00 committed by GitHub
commit cd125fc71f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View File

@ -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]])

View File

@ -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)