From b527e6ea3d74e6dd3685143de1012bc490a202d0 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Fri, 12 Feb 2021 07:43:05 +1000 Subject: [PATCH] metadata-pull-hook: move watches to +on-init --- pkg/arvo/app/metadata-pull-hook.hoon | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/pkg/arvo/app/metadata-pull-hook.hoon b/pkg/arvo/app/metadata-pull-hook.hoon index 6aa6009755..14bd000e42 100644 --- a/pkg/arvo/app/metadata-pull-hook.hoon +++ b/pkg/arvo/app/metadata-pull-hook.hoon @@ -129,20 +129,18 @@ met ~(. mdl bowl) hc ~(. +> bowl) :: -++ on-init on-init:def +++ on-init + :_ this + :~ watch-invites:hc + watch-contacts:hc + watch-store:hc + == +:: ++ on-save !>(state) ++ on-load |= =vase =+ !<(old=state-zero vase) - :_ this(state old) - %- zing - :~ ?: (~(has by wex.bowl) [/invites our.bowl %invite-store]) ~ - ~[watch-invites:hc] - ?: (~(has by wex.bowl) [/contacts our.bowl %contact-store]) ~ - ~[watch-contacts:hc] - ?: (~(has by wex.bowl) [/store our.bowl %metadata-store]) ~ - ~[watch-store:hc] - == + `this(state old) :: ++ on-poke |= [=mark =vase]