fix(enterprise/tailnet): handle query canceled error in sendBeat() (#11794)

This commit is contained in:
Cian Johnston
2024-01-24 18:42:05 +00:00
committed by GitHub
parent 8bc91b489e
commit ecae6f9135
+1 -1
View File
@@ -1494,7 +1494,7 @@ func (h *heartbeats) sendBeats() {
func (h *heartbeats) sendBeat() {
_, err := h.store.UpsertTailnetCoordinator(h.ctx, h.self)
if xerrors.Is(err, context.Canceled) {
if database.IsQueryCanceledError(err) {
return
}
if err != nil {