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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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 {