mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-10 10:05:09 +03:00
eyre: fix for %trim bug
Problem: by-channel has its own copy of server-state from line 2182. discard-channel returns an altered state, with one channel removed from the state of by-channel. but the state of by-channel isn't changing with each iteration, so |trim is only removing one channel per invocation. Solution: update by-channel on each iteration.
This commit is contained in:
parent
283e5ad1db
commit
c8fafa53bd
@ -2196,6 +2196,8 @@
|
||||
::
|
||||
=| moves=(list (list move))
|
||||
|- ^- [(list move) _http-server-gate]
|
||||
=/ event-args [[eny duct now rof] server-state.ax]
|
||||
=* by-channel by-channel:(per-server-event event-args)
|
||||
=* channel-id i.inactive
|
||||
?~ inactive
|
||||
[(zing (flop moves)) http-server-gate]
|
||||
|
Loading…
Reference in New Issue
Block a user