mirror of https://github.com/coder/coder.git
fix(enterprise/tailnet): handle query canceled error in sendBeat() (#11794)
This commit is contained in:
parent
8bc91b489e
commit
ecae6f9135
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue