diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 2 | ||||
-rw-r--r-- | models/wiki.go | 2 |
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 { |