mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix(coderd): use database.IsQueryCanceledError instead of xerrors.Is(err, context.Canceled) (#12325)
This commit is contained in:
@@ -112,7 +112,7 @@ func (a *LifecycleAPI) UpdateLifecycle(ctx context.Context, req *agentproto.Upda
|
||||
ReadyAt: readyAt,
|
||||
})
|
||||
if err != nil {
|
||||
if !xerrors.Is(err, context.Canceled) {
|
||||
if !database.IsQueryCanceledError(err) {
|
||||
// not an error if we are canceled
|
||||
logger.Error(ctx, "failed to update lifecycle state", slog.Error(err))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user