diff options
Diffstat (limited to 'internal/db/mirror.go')
-rw-r--r-- | internal/db/mirror.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/db/mirror.go b/internal/db/mirror.go index 33c837fb..8a7a7b3a 100644 --- a/internal/db/mirror.go +++ b/internal/db/mirror.go @@ -20,11 +20,11 @@ import ( "gogs.io/gogs/internal/db/errors" "gogs.io/gogs/internal/process" - "gogs.io/gogs/internal/setting" + "gogs.io/gogs/internal/conf" "gogs.io/gogs/internal/sync" ) -var MirrorQueue = sync.NewUniqueQueue(setting.Repository.MirrorQueueLength) +var MirrorQueue = sync.NewUniqueQueue(conf.Repository.MirrorQueueLength) // Mirror represents mirror information of a repository. type Mirror struct { @@ -258,7 +258,7 @@ func parseRemoteUpdateOutput(output string) []*mirrorSyncResult { func (m *Mirror) runSync() ([]*mirrorSyncResult, bool) { repoPath := m.Repo.RepoPath() wikiPath := m.Repo.WikiPath() - timeout := time.Duration(setting.Git.Timeout.Mirror) * time.Second + timeout := time.Duration(conf.Git.Timeout.Mirror) * time.Second // Do a fast-fail testing against on repository URL to ensure it is accessible under // good condition to prevent long blocking on URL resolution without syncing anything. |