2
0
mirror of https://github.com/hibiken/asynq.git synced 2026-06-28 19:29:34 +08:00

Minor improvement

This commit is contained in:
Ken Hibino
2019-12-09 06:22:08 -08:00
parent 4179c72c05
commit 8932ca41b3
6 changed files with 27 additions and 20 deletions

View File

@@ -33,8 +33,8 @@ type Background struct {
// NewBackground returns a new Background with the specified number of workers
// given a redis configuration .
func NewBackground(numWorkers int, config *RedisConfig) *Background {
r := rdb.NewRDB(newRedisClient(config))
func NewBackground(numWorkers int, cfg *RedisConfig) *Background {
r := rdb.NewRDB(newRedisClient(cfg))
poller := newPoller(r, 5*time.Second)
processor := newProcessor(r, numWorkers, nil)
return &Background{