fix(backend): sync limiter on association instead of connection

Reverted the full sync on connection hook. Instead, ensureLimiterOnNode is called within syncForwardServices to push limiter configuration immediately before pushing the service configuration that references it.
This commit is contained in:
sagit
2026-02-09 09:06:59 +00:00
parent 3d7a0b697d
commit 3420dc5460
3 changed files with 23 additions and 42 deletions
+1 -3
View File
@@ -62,13 +62,11 @@ type flowItem struct {
}
func New(repo *sqlite.Repository, jwtSecret string) *Handler {
h := &Handler{
return &Handler{
repo: repo,
jwtSecret: jwtSecret,
wsServer: ws.NewServer(repo, jwtSecret),
}
h.wsServer.OnNodeConnected = h.onNodeConnected
return h
}
func (h *Handler) WebSocketHandler() http.Handler {