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:
bacwyls 2022-07-08 15:14:13 -07:00 committed by GitHub
parent 283e5ad1db
commit c8fafa53bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]