Skip to content

Commit

Permalink
Fix: use redis client (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogbanugot committed Jun 28, 2022
1 parent 6b9490c commit c70ab04
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions worker/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ type Scheduler struct {
}

func NewScheduler(queue queue.Queuer) *Scheduler {
scheduler := asynq.NewScheduler(asynq.RedisClientOpt{
Addr: queue.Options().RedisAddress,
Password: "",
DB: 0,
}, nil)
scheduler := asynq.NewScheduler(queue.Options().RedisClient, nil)

w, err := NewConsumer(queue)
if err != nil {
Expand Down

0 comments on commit c70ab04

Please sign in to comment.