Increase self-check timeouts and threshold

This commit is contained in:
Daniel
2022-03-30 16:25:33 +02:00
parent 0c5bdbbc13
commit 17f67be521
2 changed files with 7 additions and 3 deletions

View File

@@ -28,6 +28,10 @@ var (
selfcheckFails int
)
// selfcheckFailThreshold holds the threshold of how many times the selfcheck
// must fail before it is reported.
const selfcheckFailThreshold = 5
func init() {
module = modules.Register("compat", prep, start, stop, "base", "network", "interception", "netenv", "notifications")
@@ -82,7 +86,7 @@ func selfcheckTaskFunc(ctx context.Context, task *modules.Task) error {
selfcheckFails++
log.Errorf("compat: %s", err)
if selfcheckFails >= 3 {
if selfcheckFails >= selfcheckFailThreshold {
issue.notify(err)
}