Skip to content

Commit b373e83

Browse files
spikecurtispull[bot]
authored andcommitted
fix: stop dropping error log on context canceled after heartbeat (#9427)
Signed-off-by: Spike Curtis <spike@coder.com>
1 parent 8353aa4 commit b373e83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

enterprise/tailnet/pgcoord.go

+3
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,9 @@ func (h *heartbeats) sendBeats() {
13651365

13661366
func (h *heartbeats) sendBeat() {
13671367
_, err := h.store.UpsertTailnetCoordinator(h.ctx, h.self)
1368+
if xerrors.Is(err, context.Canceled) {
1369+
return
1370+
}
13681371
if err != nil {
13691372
h.logger.Error(h.ctx, "failed to send heartbeat", slog.Error(err))
13701373
h.failedHeartbeats++

0 commit comments

Comments
 (0)