mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
24 lines
614 B
Go
24 lines
614 B
Go
package expiration
|
|
|
|
import (
|
|
"github.com/sourcegraph/sourcegraph/internal/goroutine"
|
|
)
|
|
|
|
func NewExpirationTasks(uploadSvc UploadService) []goroutine.BackgroundRoutine {
|
|
return []goroutine.BackgroundRoutine{
|
|
uploadSvc.NewUploadExpirer(
|
|
ConfigInst.ExpirerInterval,
|
|
ConfigInst.RepositoryProcessDelay,
|
|
ConfigInst.RepositoryBatchSize,
|
|
ConfigInst.UploadProcessDelay,
|
|
ConfigInst.UploadBatchSize,
|
|
ConfigInst.CommitBatchSize,
|
|
ConfigInst.PolicyBatchSize,
|
|
),
|
|
uploadSvc.NewReferenceCountUpdater(
|
|
ConfigInst.ReferenceCountUpdaterInterval,
|
|
ConfigInst.ReferenceCountUpdaterBatchSize,
|
|
),
|
|
}
|
|
}
|