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_mirror.go | |
parent | 05fd9d3f096e53bcf80b73345d6fa567fbf017e6 (diff) | |
download | gitea-b3828e38a5fbb92a92bae11e1e126b87fbad09c8.tar.gz gitea-b3828e38a5fbb92a92bae11e1e126b87fbad09c8.zip |
more
Diffstat (limited to 'models/repo_mirror.go')
-rw-r--r-- | models/repo_mirror.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/repo_mirror.go b/models/repo_mirror.go index 9688f579ab..c598f82bf8 100644 --- a/models/repo_mirror.go +++ b/models/repo_mirror.go @@ -191,11 +191,11 @@ func DeleteMirrorByRepoID(repoID int64) error { // MirrorUpdate checks and updates mirror repositories. func MirrorUpdate() { - if taskStatusTable.IsRunning(_MIRROR_UPDATE) { + if taskStatusTable.IsRunning(mirrorUpdate) { return } - taskStatusTable.Start(_MIRROR_UPDATE) - defer taskStatusTable.Stop(_MIRROR_UPDATE) + taskStatusTable.Start(mirrorUpdate) + defer taskStatusTable.Stop(mirrorUpdate) log.Trace("Doing: MirrorUpdate") |