1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-04-28 05:48:48 +00:00

Use default Git timeout when checking repo health ()

This commit is contained in:
Zettat123 2025-02-14 23:13:56 +08:00 committed by GitHub
parent 70327d6a92
commit 8aede14b1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -54,7 +54,7 @@ func registerRepoHealthCheck() {
RunAtStart: false, RunAtStart: false,
Schedule: "@midnight", Schedule: "@midnight",
}, },
Timeout: 60 * time.Second, Timeout: time.Duration(setting.Git.Timeout.Default) * time.Second,
Args: []string{}, Args: []string{},
}, func(ctx context.Context, _ *user_model.User, config Config) error { }, func(ctx context.Context, _ *user_model.User, config Config) error {
rhcConfig := config.(*RepoHealthCheckConfig) rhcConfig := config.(*RepoHealthCheckConfig)