natsbot

NATS bot
git clone https://git.instinctive.eu/natsbot.git
Log | Files | Refs | README | LICENSE

commit a419697a0406b7a20668e3876e8e90bbc3514739
parent 106be77ec3782d851d56c93b5b3de0e05ba54d2e
Author: Natasha Kerensikova <natgh@instinctive.eu>
Date:   Sat,  6 Sep 2025 17:49:29 +0000

Termination is checked using subscription table
Diffstat:
Mnatsbot.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/natsbot.go b/natsbot.go @@ -89,7 +89,7 @@ func Loop(cb NatsBot, mainScript string, capacity int) { toClean = make(map[*nats.Subscription]bool) } - if tableWithIndexIsEmpty(stateConnTable(L)) && tableIsEmpty(stateTimerTable(L)) { + if tableWithIndexIsEmpty(stateSubsTable(L)) && tableIsEmpty(stateTimerTable(L)) { break } }