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