mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-11 08:55:23 +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]
|
||||
?:(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)
|
||||
?. 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)
|
||||
|
Loading…
Reference in New Issue
Block a user