summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-01-15 11:14:50 +0800
committerAntoine GIRARD <sapk@users.noreply.github.com>2020-01-15 04:14:50 +0100
commitd32eac44b16c7b3320b586f402621de84fafa185 (patch)
tree8d41d16dbfc266cdf910ab146d338b442990d27d /models/repo.go
parentfd761708feb9d19ec7e387e0313336d2e5893987 (diff)
downloadgitea-d32eac44b16c7b3320b586f402621de84fafa185.tar.gz
gitea-d32eac44b16c7b3320b586f402621de84fafa185.zip
Move RepoWorkingPool to services/repository package (#9754)
* Move RepoWorkingPool to services/repository package * Make repoWorkingPool private Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/models/repo.go b/models/repo.go
index ee9e6a504b..2c9dafefc9 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -33,7 +33,6 @@ import (
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/structs"
api "code.gitea.io/gitea/modules/structs"
- "code.gitea.io/gitea/modules/sync"
"code.gitea.io/gitea/modules/timeutil"
"code.gitea.io/gitea/modules/util"
@@ -41,9 +40,6 @@ import (
"xorm.io/builder"
)
-// RepoWorkingPool represents a working pool to order the parallel changes to the same repository
-var RepoWorkingPool = sync.NewExclusivePool()
-
var (
// ErrMirrorNotExist mirror does not exist error
ErrMirrorNotExist = errors.New("Mirror does not exist")