1
0
Fork 0
forked from forgejo/forgejo
This commit is contained in:
Andrew Thornton 2019-12-16 22:05:31 +00:00
parent cc123c3448
commit 1013ced326
No known key found for this signature in database
GPG key ID: 3CDE74631F13A748
4 changed files with 12 additions and 6 deletions

View file

@ -115,7 +115,9 @@ func getQueueSettings(name string) queueSettings {
return q
}
func newQueueService() {
// NewQueueService sets up the default settings for Queues
// This is exported for tests to be able to use the queue
func NewQueueService() {
sec := Cfg.Section("queue")
Queue.DataDir = sec.Key("DATADIR").MustString("queues/")
if !path.IsAbs(Queue.DataDir) {