From a9f3be003e4c48662694acc20c165ef8bd0ef124 Mon Sep 17 00:00:00 2001 From: raghu <{ID}+{username}@users.noreply.github.com> Date: Mon, 21 Jun 2021 20:44:29 -0400 Subject: [PATCH] kiln: move to %sing from %next --- pkg/arvo/lib/hood/kiln.hoon | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/pkg/arvo/lib/hood/kiln.hoon b/pkg/arvo/lib/hood/kiln.hoon index ab7a04a2be..398e7accf2 100644 --- a/pkg/arvo/lib/hood/kiln.hoon +++ b/pkg/arvo/lib/hood/kiln.hoon @@ -741,13 +741,13 @@ ?^ ver.fs :: static source, don't need to track ~ - =/ bec=beak (realize-fuse-source fs) + =/ bec=beak (realize-fuse-source fs &) ?> =(who.fs p.bec) ?> =(des.fs q.bec) =/ hax=@ud (mug [kf (~(got by hxs) syd)]) =/ wir=wire /kiln/fuse-request/[syd]/(scot %p p.bec)/[q.bec]/(scot %ud hax) - =/ rav=rave [%next %w r.bec /] + =/ rav=rave [%sing %w r.bec /] =/ rif=riff [q.bec `rav] `[%pass wir %arvo %c [%warp who.fs rif]] :: No need to keep state if all the sources are static @@ -757,12 +757,12 @@ :: ++ send-fuse ^+ ..abet - =/ bas=beak (realize-fuse-source bas.kf) + =/ bas=beak (realize-fuse-source bas.kf |) =/ con=(list [beak germ]) %+ turn con.kf |= [fs=fuse-source g=germ] - [(realize-fuse-source fs) g] + [(realize-fuse-source fs |) g] %- blab [%pass /kiln/fuse/[syd] %arvo %c [%fuse syd bas con]]~ :: @@ -796,22 +796,25 @@ :: fully realized beak. :: ++ realize-fuse-source - |= fs=fuse-source + |= [fs=fuse-source incr=flag] ^- beak :+ who.fs des.fs ?@ ver.fs - (realize-case [who.fs des.fs]) + (realize-case [who.fs des.fs incr]) `case`ver.fs :: ++ realize-case - |= [who=ship des=desk] + |= [who=ship des=desk incr=flag] ^- case =/ let=(unit @ud) (~(get by mox) [who des]) ^- case ?~ let da+now - ud+u.let + :- %ud + ?: incr + +(u.let) + u.let -- :: ++ auto