2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-11-10 11:31:58 +08:00

Remove debug log

This commit is contained in:
Ken Hibino 2019-12-06 22:29:40 -08:00
parent 62fb3cf7d9
commit c1d0497182

View File

@ -97,7 +97,6 @@ func (r *RDB) Dequeue(timeout time.Duration) (*TaskMessage, error) {
if err != nil {
return nil, fmt.Errorf("could not unmarshal %v to json: %v", data, err)
}
fmt.Printf("[DEBUG] perform task %+v from %s\n", msg, defaultQ)
return &msg, nil
}
@ -196,7 +195,6 @@ func (r *RDB) forward(from string) error {
return msgs
`)
now := float64(time.Now().Unix())
res, err := script.Run(r.client, []string{from, allQueues, defaultQ}, now).Result()
fmt.Printf("[DEBUG] got %d tasks from %q\n", len(res.([]interface{})), from)
_, err := script.Run(r.client, []string{from, allQueues, defaultQ}, now).Result()
return err
}
}