Skip to content
Prev Previous commit
Next Next commit
Remove PullRequestQueueLength and MirrorQueueLength
Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath committed Oct 16, 2021
commit 54d8bff6269276f3b1c2d26f9cf8a836a742d4ab
4 changes: 2 additions & 2 deletions modules/setting/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ func NewQueueService() {

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

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

// handleOldLengthConfiguration allows fallback to older configuration. `[queue.name]` `LENGTH` will override this configuration, but
Expand Down
4 changes: 0 additions & 4 deletions modules/setting/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ var (
DefaultPrivate string
DefaultPushCreatePrivate bool
MaxCreationLimit int
MirrorQueueLength int
PullRequestQueueLength int
PreferredLicenses []string
DisableHTTPGit bool
AccessControlAllowOrigin string
Expand Down Expand Up @@ -142,8 +140,6 @@ var (
DefaultPrivate: RepoCreatingLastUserVisibility,
DefaultPushCreatePrivate: true,
MaxCreationLimit: -1,
MirrorQueueLength: 1000,
PullRequestQueueLength: 1000,
PreferredLicenses: []string{"Apache License 2.0", "MIT License"},
DisableHTTPGit: false,
AccessControlAllowOrigin: "",
Expand Down