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.
This commit is contained in:
fang 2023-05-24 14:07:29 +02:00 committed by GitHub
parent 30cde41800
commit 2b9d603951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4018,13 +4018,14 @@
::
=/ dat [her bone=bone message-num=message-num]
?:(ok "sink boon {<dat>}" "crashed on sink boon {<dat>}")
:: if we previously crashed on this message;
:: notify client vane instead of making it try again
=. peer-core (pe-emit (got-duct bone) %give %boon message)
=? moves !ok
:: we previously crashed on this message; notify client vane
::
=. peer-core
%+ pe-emit (got-duct bone)
?. ok [%give %lost ~]
[%give %boon message]
%+ turn moves
|= =move
?. ?=([* %give %boon *] move) move
[duct.move %give %lost ~]
:: send ack unconditionally
::
(call %done ok=%.y)