diff options
author | Sandro Santilli <strk@kbt.io> | 2016-11-07 17:41:28 +0100 |
---|---|---|
committer | Sandro Santilli <strk@kbt.io> | 2016-11-07 17:41:28 +0100 |
commit | b3828e38a5fbb92a92bae11e1e126b87fbad09c8 (patch) | |
tree | 3b96ba9b1e42203ed295fcc0efa4e079e00dcd7d /models/repo.go | |
parent | 05fd9d3f096e53bcf80b73345d6fa567fbf017e6 (diff) | |
download | gitea-b3828e38a5fbb92a92bae11e1e126b87fbad09c8.tar.gz gitea-b3828e38a5fbb92a92bae11e1e126b87fbad09c8.zip |
more
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/models/repo.go b/models/repo.go index 5c5af32f4c..edf5de9329 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1613,18 +1613,18 @@ func RewriteRepositoryUpdateHook() error { var taskStatusTable = sync.NewStatusTable() const ( - _MIRROR_UPDATE = "mirror_update" - _GIT_FSCK = "git_fsck" - _CHECK_REPOs = "check_repos" + mirrorUpdate = "mirror_update" + gitFsck = "git_fsck" + checkRepos = "check_repos" ) // GitFsck calls 'git fsck' to check repository health. func GitFsck() { - if taskStatusTable.IsRunning(_GIT_FSCK) { + if taskStatusTable.IsRunning(gitFsck) { return } - taskStatusTable.Start(_GIT_FSCK) - defer taskStatusTable.Stop(_GIT_FSCK) + taskStatusTable.Start(gitFsck) + defer taskStatusTable.Stop(gitFsck) log.Trace("Doing: GitFsck") @@ -1686,11 +1686,11 @@ func repoStatsCheck(checker *repoChecker) { } func CheckRepoStats() { - if taskStatusTable.IsRunning(_CHECK_REPOs) { + if taskStatusTable.IsRunning(checkRepos) { return } - taskStatusTable.Start(_CHECK_REPOs) - defer taskStatusTable.Stop(_CHECK_REPOs) + taskStatusTable.Start(checkRepos) + defer taskStatusTable.Stop(checkRepos) log.Trace("Doing: CheckRepoStats") |