From 3a04dc31604353a073029b9f0eac9b4907cb03be Mon Sep 17 00:00:00 2001 From: Philip Monk Date: Wed, 13 Apr 2022 15:00:59 -0700 Subject: [PATCH] clay: address review comments --- pkg/arvo/sys/vane/clay.hoon | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pkg/arvo/sys/vane/clay.hoon b/pkg/arvo/sys/vane/clay.hoon index 0bd9eb9b51..b076654007 100644 --- a/pkg/arvo/sys/vane/clay.hoon +++ b/pkg/arvo/sys/vane/clay.hoon @@ -169,9 +169,11 @@ :: :: New desk data. :: -:: Sent to other ships to update them about a particular desk. Includes a map -:: of all new aeons to hashes of their commits, the most recent aeon, and sets -:: of all new commits and data. +:: Sent to other ships to update them about a particular desk. +:: Includes a map of all new aeons to hashes of their commits, the most +:: recent aeon, and sets of all new commits and data. `bar` is always +:: empty now because we expect you to request any data you don't have +:: yet :: +$ nako :: subscription state $: gar=(map aeon tako) :: new ids @@ -3057,11 +3059,11 @@ =* lobe-loop $ ?~ lobes yaki-loop(yakis t.yakis) - ?: (~(has by lat.ran) lobe.i.lobes) - lobe-loop(lobes t.lobes) - ?: =([~ %|] (~(fit ^de norm) path.i.lobes)) - lobe-loop(lobes t.lobes) - =. missing (~(put in missing) lobe.i.lobes) + =? missing + ?& !(~(has by lat.ran) lobe.i.lobes) + !=([~ %|] (~(fit ^de norm) path.i.lobes)) + == + (~(put in missing) lobe.i.lobes) lobe-loop(lobes t.lobes) :: :: Receive backfill response