Skip to content

Commit 1465ee2

Browse files
authored
fix(coderd): use database.IsQueryCanceledError instead of xerrors.Is(err, context.Canceled) (coder#12325)
1 parent eb4a1e2 commit 1465ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/agentapi/lifecycle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (a *LifecycleAPI) UpdateLifecycle(ctx context.Context, req *agentproto.Upda
112112
ReadyAt: readyAt,
113113
})
114114
if err != nil {
115-
if !xerrors.Is(err, context.Canceled) {
115+
if !database.IsQueryCanceledError(err) {
116116
// not an error if we are canceled
117117
logger.Error(ctx, "failed to update lifecycle state", slog.Error(err))
118118
}

0 commit comments

Comments
 (0)