mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 10:21:31 +03:00
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:
parent
30cde41800
commit
2b9d603951
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user