mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(enterprise/tailnet): handle query canceled error in sendBeat() (#11794)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user