summaryrefslogtreecommitdiffstats
path: root/modules/setting/task.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/task.go')
-rw-r--r--modules/setting/task.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/setting/task.go b/modules/setting/task.go
index 81ed39a9fb..d9329dbb76 100644
--- a/modules/setting/task.go
+++ b/modules/setting/task.go
@@ -10,9 +10,10 @@ func newTaskService() {
switch taskSec.Key("QUEUE_TYPE").MustString(ChannelQueueType) {
case ChannelQueueType:
queueTaskSec.Key("TYPE").MustString("persistable-channel")
+ queueTaskSec.Key("CONN_STR").MustString(taskSec.Key("QUEUE_CONN_STR").MustString(""))
case RedisQueueType:
queueTaskSec.Key("TYPE").MustString("redis")
+ queueTaskSec.Key("CONN_STR").MustString(taskSec.Key("QUEUE_CONN_STR").MustString("addrs=127.0.0.1:6379 db=0"))
}
queueTaskSec.Key("LENGTH").MustInt(taskSec.Key("QUEUE_LENGTH").MustInt(1000))
- queueTaskSec.Key("CONN_STR").MustString(taskSec.Key("QUEUE_CONN_STR").MustString("addrs=127.0.0.1:6379 db=0"))
}