mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-08-06 09:39:44 +08:00
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>
This commit is contained in:

committed by
Antoine GIRARD

parent
fd761708fe
commit
d32eac44b1
@ -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")
|
||||
|
Reference in New Issue
Block a user