fixed kick messages

This commit is contained in:
dachus 2023-02-08 13:47:43 -05:00
parent 54d655aeda
commit c377008f62

View File

@ -1605,14 +1605,17 @@
=/ num=@ud =/ num=@ud
(~(gut by unacked.u.channel) request-id 0) (~(gut by unacked.u.channel) request-id 0)
:_ (~(put by unacked.u.channel) request-id +(num)) :_ (~(put by unacked.u.channel) request-id +(num))
?: ?& (gte num clog-threshold) ?& (gte num clog-threshold)
(lth (add last-ack.u.channel clog-timeout) now) (lth (add last-ack.u.channel clog-timeout) now)
== ==
((trace 1 |.("eyre: clogged {<channel-id>} {<request-id>}")) &) |
:: if we're clogged, or we ran into an event we can't serialize, :: if we're clogged, or we ran into an event we can't serialize,
:: kill this gall subscription. :: kill this gall subscription.
:: ::
=/ kicking=? |(clogged ?=(~ json)) =/ kicking=?
?: clogged
((trace 1 |.("clogged {<channel-id>} {<request-id>}")) &)
?: ?=(~ json)
((trace 1 |.("can't serialize event, kicking")) &) |
=? moves kicking =? moves kicking
:_ moves :_ moves
::NOTE this shouldn't crash because we ::NOTE this shouldn't crash because we