mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
Switch from polling node.NextEvent() every second to node.NextEventAsync(), which parks the goroutine until an event arrives without blocking an OS thread or an LDK thread, as LDK is migrating to async event handling. Guard event handling with a mutex held by Shutdown() so in-flight handlers finish before the node is stopped and destroyed, and drop events that arrive after shutdown starts (LDK redelivers unhandled events on startup). Co-authored-by: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| bark | ||
| cashu | ||
| cln | ||
| ldk | ||
| lnd | ||
| phoenixd | ||
| models.go | ||