mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fix: stop dropping error log on context canceled after heartbeat (#9427)
Signed-off-by: Spike Curtis <spike@coder.com>
This commit is contained in:
@@ -1365,6 +1365,9 @@ func (h *heartbeats) sendBeats() {
|
||||
|
||||
func (h *heartbeats) sendBeat() {
|
||||
_, err := h.store.UpsertTailnetCoordinator(h.ctx, h.self)
|
||||
if xerrors.Is(err, context.Canceled) {
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
h.logger.Error(h.ctx, "failed to send heartbeat", slog.Error(err))
|
||||
h.failedHeartbeats++
|
||||
|
||||
Reference in New Issue
Block a user