Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cfa708 commit 2811ab6Copy full SHA for 2811ab6
enterprise/coderd/workspaceproxy.go
@@ -34,7 +34,7 @@ import (
34
// forceWorkspaceProxyHealthUpdate forces an update of the proxy health.
35
// This is useful when a proxy is created or deleted. Errors will be logged.
36
func (api *API) forceWorkspaceProxyHealthUpdate(ctx context.Context) {
37
- if err := api.ProxyHealth.ForceUpdate(ctx); err != nil && !xerrors.Is(err, context.Canceled) {
+ if err := api.ProxyHealth.ForceUpdate(ctx); err != nil && !database.IsQueryCanceledError(err) && !xerrors.Is(err, context.Canceled) {
38
api.Logger.Error(ctx, "force proxy health update", slog.Error(err))
39
}
40
0 commit comments