summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-30 15:19:53 -0700
committerUnknwon <u@gogs.io>2016-08-30 15:19:53 -0700
commit43297148b22b976d9cec0c56c863a704f3691c0e (patch)
tree230bce7c66ae688c447684357bf8bd7cc0315211 /models
parentc0c1a4b01b4dee3cc85d26f4081ff0a456a16b38 (diff)
downloadgitea-43297148b22b976d9cec0c56c863a704f3691c0e.tar.gz
gitea-43297148b22b976d9cec0c56c863a704f3691c0e.zip
modules/sync: rename SingleInstancePool to ExclusivePool
Diffstat (limited to 'models')
-rw-r--r--models/repo.go2
-rw-r--r--models/wiki.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go
index a26ba92482..8c6f86dafc 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -40,7 +40,7 @@ const (
_TPL_UPDATE_HOOK = "#!/usr/bin/env %s\n%s update $1 $2 $3 --config='%s'\n"
)
-var repoWorkingPool = sync.NewSingleInstancePool()
+var repoWorkingPool = sync.NewExclusivePool()
var (
ErrRepoFileNotExist = errors.New("Repository file does not exist")
diff --git a/models/wiki.go b/models/wiki.go
index f62cd2ac79..bc8aaf666e 100644
--- a/models/wiki.go
+++ b/models/wiki.go
@@ -21,7 +21,7 @@ import (
"github.com/gogits/gogs/modules/sync"
)
-var wikiWorkingPool = sync.NewSingleInstancePool()
+var wikiWorkingPool = sync.NewExclusivePool()
// ToWikiPageURL formats a string to corresponding wiki URL name.
func ToWikiPageURL(name string) string {