diff options
Diffstat (limited to 'models/pull.go')
-rw-r--r-- | models/pull.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/models/pull.go b/models/pull.go index 64b34755..100d4db4 100644 --- a/models/pull.go +++ b/models/pull.go @@ -20,8 +20,11 @@ import ( "github.com/gogits/gogs/modules/log" "github.com/gogits/gogs/modules/process" "github.com/gogits/gogs/modules/setting" + "github.com/gogits/gogs/modules/sync" ) +var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength) + type PullRequestType int const ( @@ -537,8 +540,6 @@ func (pr *PullRequest) UpdateCols(cols ...string) error { return err } -var PullRequestQueue = NewUniqueQueue(setting.Repository.PullRequestQueueLength) - // UpdatePatch generates and saves a new patch. func (pr *PullRequest) UpdatePatch() (err error) { if err = pr.GetHeadRepo(); err != nil { |