Skip to content

Commit 54d8bff

Browse files
committed
Remove PullRequestQueueLength and MirrorQueueLength
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 6109ee0 commit 54d8bff

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

modules/setting/queue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ func NewQueueService() {
142142

143143
// Handle the old test pull requests configuration
144144
// Please note this will be a unique queue
145-
handleOldLengthConfiguration("pr_patch_checker", Repository.PullRequestQueueLength)
145+
handleOldLengthConfiguration("pr_patch_checker", Cfg.Section("repository").Key("PULL_REQUEST_QUEUE_LENGTH").MustInt(1000))
146146

147147
// Handle the old mirror queue configuration
148148
// Please note this will be a unique queue
149-
handleOldLengthConfiguration("mirror", Repository.MirrorQueueLength)
149+
handleOldLengthConfiguration("mirror", Cfg.Section("repository").Key("MIRROR_QUEUE_LENGTH").MustInt(1000))
150150
}
151151

152152
// handleOldLengthConfiguration allows fallback to older configuration. `[queue.name]` `LENGTH` will override this configuration, but

modules/setting/repository.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ var (
2929
DefaultPrivate string
3030
DefaultPushCreatePrivate bool
3131
MaxCreationLimit int
32-
MirrorQueueLength int
33-
PullRequestQueueLength int
3432
PreferredLicenses []string
3533
DisableHTTPGit bool
3634
AccessControlAllowOrigin string
@@ -142,8 +140,6 @@ var (
142140
DefaultPrivate: RepoCreatingLastUserVisibility,
143141
DefaultPushCreatePrivate: true,
144142
MaxCreationLimit: -1,
145-
MirrorQueueLength: 1000,
146-
PullRequestQueueLength: 1000,
147143
PreferredLicenses: []string{"Apache License 2.0", "MIT License"},
148144
DisableHTTPGit: false,
149145
AccessControlAllowOrigin: "",

0 commit comments

Comments
 (0)