Remove Queue field and Priority field to base.TaskMessage

This commit is contained in:
Ken Hibino
2020-01-01 07:48:21 -08:00
parent 31a18d783e
commit 2e95166f39
5 changed files with 33 additions and 33 deletions

View File

@@ -42,7 +42,7 @@ func (r *RDB) Enqueue(msg *base.TaskMessage) error {
if err != nil {
return err
}
qname := base.QueuePrefix + msg.Queue
qname := base.QueueKey(msg.Priority)
return r.client.LPush(qname, string(bytes)).Err()
}