Skip to content

Commit ecae6f9

Browse files
authored
fix(enterprise/tailnet): handle query canceled error in sendBeat() (#11794)
1 parent 8bc91b4 commit ecae6f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enterprise/tailnet/pgcoord.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ func (h *heartbeats) sendBeats() {
14941494

14951495
func (h *heartbeats) sendBeat() {
14961496
_, err := h.store.UpsertTailnetCoordinator(h.ctx, h.self)
1497-
if xerrors.Is(err, context.Canceled) {
1497+
if database.IsQueryCanceledError(err) {
14981498
return
14991499
}
15001500
if err != nil {

0 commit comments

Comments
 (0)