From 2b9d6039514bcb14518470bc4aa58970e1a27cd1 Mon Sep 17 00:00:00 2001 From: fang Date: Wed, 24 May 2023 14:07:29 +0200 Subject: [PATCH] ames: turn all pending %boons into %losts This was the behavior prior to d8e11b6, except that we now correctly include the new %boon in the transformation also. --- pkg/arvo/sys/vane/ames.hoon | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkg/arvo/sys/vane/ames.hoon b/pkg/arvo/sys/vane/ames.hoon index 0067a656f6..e88b6b5ddc 100644 --- a/pkg/arvo/sys/vane/ames.hoon +++ b/pkg/arvo/sys/vane/ames.hoon @@ -4018,13 +4018,14 @@ :: =/ dat [her bone=bone message-num=message-num] ?:(ok "sink boon {}" "crashed on sink boon {}") - :: if we previously crashed on this message; - :: notify client vane instead of making it try again - :: - =. peer-core - %+ pe-emit (got-duct bone) - ?. ok [%give %lost ~] - [%give %boon message] + =. peer-core (pe-emit (got-duct bone) %give %boon message) + =? moves !ok + :: we previously crashed on this message; notify client vane + :: + %+ turn moves + |= =move + ?. ?=([* %give %boon *] move) move + [duct.move %give %lost ~] :: send ack unconditionally :: (call %done ok=%.y)