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

Fix comment

This commit is contained in:
Ken Hibino 2020-03-21 11:44:26 -07:00
parent c33dd447ac
commit 9b4438347e

View File

@ -255,7 +255,7 @@ redis.call("SADD", KEYS[3], ARGV[5])
return 1 return 1
`) `)
// Schedule adds the task to the backlog queue to be processed in the future if the uniqueness lock can be acquired. // ScheduleUnique adds the task to the backlog queue to be processed in the future if the uniqueness lock can be acquired.
// It returns ErrDuplicateTask if the lock cannot be acquired. // It returns ErrDuplicateTask if the lock cannot be acquired.
func (r *RDB) ScheduleUnique(msg *base.TaskMessage, processAt time.Time, ttl time.Duration) error { func (r *RDB) ScheduleUnique(msg *base.TaskMessage, processAt time.Time, ttl time.Duration) error {
bytes, err := json.Marshal(msg) bytes, err := json.Marshal(msg)