Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Chandler <wchandler@gitlab.com>2022-08-20 16:15:22 +0300
committerWill Chandler <wchandler@gitlab.com>2022-08-20 16:15:22 +0300
commit28b52c3b64fb857de6b1c62af662fe54249fa225 (patch)
treea637cef25392bedd1651349b64fb8ec922fbc412 /internal/praefect/nodes/tracker/errors.go
parent109499970cae4fa648d9c0119bb708f0dd65f1d4 (diff)
parent72e1c78e920a917ae96a25271173740e6557888e (diff)
Merge branch 'renovate/github.com-pelletier-go-toml-2.x' into 'master'
go: Update module github.com/pelletier/go-toml to v2 See merge request gitlab-org/gitaly!4652
Diffstat (limited to 'internal/praefect/nodes/tracker/errors.go')
-rw-r--r--internal/praefect/nodes/tracker/errors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/nodes/tracker/errors.go b/internal/praefect/nodes/tracker/errors.go
index 1fce839bf..8a87d30cc 100644
--- a/internal/praefect/nodes/tracker/errors.go
+++ b/internal/praefect/nodes/tracker/errors.go
@@ -32,7 +32,7 @@ func NewErrorWindowFunction(cfg config.Failover) (ErrorWindowFunction, error) {
return nil, errors.New("errorWindow must be non zero")
}
- errorWindow := cfg.ErrorThresholdWindow
+ errorWindow := cfg.ErrorThresholdWindow.Duration()
return func(now time.Time, errorTime time.Time) bool {
return errorTime.After(now.Add(-errorWindow))
}, nil