aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo_mirror.go
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-11-07 17:41:28 +0100
committerSandro Santilli <strk@kbt.io>2016-11-07 17:41:28 +0100
commitb3828e38a5fbb92a92bae11e1e126b87fbad09c8 (patch)
tree3b96ba9b1e42203ed295fcc0efa4e079e00dcd7d /models/repo_mirror.go
parent05fd9d3f096e53bcf80b73345d6fa567fbf017e6 (diff)
downloadgitea-b3828e38a5fbb92a92bae11e1e126b87fbad09c8.tar.gz
gitea-b3828e38a5fbb92a92bae11e1e126b87fbad09c8.zip
more
Diffstat (limited to 'models/repo_mirror.go')
-rw-r--r--models/repo_mirror.go6
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")