2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-09 07:03:23 +08:00

Rename to RedisConfig

This commit is contained in:
Ken Hibino
2019-12-03 19:43:01 -08:00
parent 4afb3a2401
commit 57838600ef
6 changed files with 13 additions and 13 deletions

View File

@@ -20,8 +20,8 @@ type Background struct {
}
// NewBackground returns a new Background instance.
func NewBackground(numWorkers int, opt *RedisOpt) *Background {
rdb := newRDB(opt)
func NewBackground(numWorkers int, config *RedisConfig) *Background {
rdb := newRDB(config)
poller := newPoller(rdb, 5*time.Second, []string{scheduled, retry})
processor := newProcessor(rdb, numWorkers, nil)
return &Background{