Skip to content

Commit f50f929

Browse files
committed
fixup! fix migrations
1 parent 618b0e0 commit f50f929

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

coderd/database/dump.sql

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

enterprise/tailnet/pgcoord.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,9 +667,17 @@ func (q *querier) handleNewSubscriptions() {
667667
return
668668
case c := <-q.newSubscriptions:
669669
if c.active {
670-
q.newClientSubscription(c.q, c.agentID)
670+
err := q.newClientSubscription(c.q, c.agentID)
671+
if err != nil {
672+
q.logger.Error(q.ctx, "create client subscription", slog.Error(err),
673+
slog.F("client_id", c.q.UniqueID()), slog.F("agent_id", c.agentID))
674+
}
671675
} else {
672-
q.removeClientSubscription(c.q, c.agentID)
676+
err := q.removeClientSubscription(c.q, c.agentID)
677+
if err != nil {
678+
q.logger.Error(q.ctx, "remove client subscription", slog.Error(err),
679+
slog.F("client_id", c.q.UniqueID()), slog.F("agent_id", c.agentID))
680+
}
673681
}
674682
}
675683
}

0 commit comments

Comments
 (0)