From f0a9f40cbe99cca2b223b74765c8c6dc00007b49 Mon Sep 17 00:00:00 2001 From: dachus Date: Mon, 24 Apr 2023 11:49:17 -0300 Subject: [PATCH] +live removed, logic moved into give --- pkg/base-dev/lib/sss.hoon | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkg/base-dev/lib/sss.hoon b/pkg/base-dev/lib/sss.hoon index 8a9506d9f..8a29b650d 100644 --- a/pkg/base-dev/lib/sss.hoon +++ b/pkg/base-dev/lib/sss.hoon @@ -227,7 +227,10 @@ ^- (quip card:agent:gall pubs) ?~ ((soft ^path) path) ~| %need-path !! =/ buoy (~(gut by pub) path *buoy) - ?@ tide=tid.buoy ~| %dead-path !! ::TODO is this good behavior? + =? buoy ?=(@ tid.buoy) + %*(. buoy(tid *tide) rok.tid (put:rok ~ +(tid.buoy) *rock:lake)) + ?> ?=(^ tid.buoy) + =* tide tid.buoy =/ next=aeon +((latest tide)) :- %+ murn ~(tap bi mem.tide) |= [=ship =dude =@da] @@ -291,12 +294,6 @@ ++ kill :: subs to not expect updates. (curr edit |=(=buoy buoy(tid (latest tid.buoy)))) :: :: Reopen list of killed paths. - ++ live :: No-ops on live paths. - %+ curr edit - |= =buoy - ?^ tid.buoy buoy - %*(. buoy(tid *tide) rok.tid (put:rok ~ +(tid.buoy) *rock:lake)) - :: ++ read :: See current published states. ^- (map paths [allowed=(unit (set ship)) =rock:lake]) %- malt %+ murn ~(tap by pub)