From 9b4438347ef23b9b400875723caf9f6d6fc14545 Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Sat, 21 Mar 2020 11:44:26 -0700 Subject: [PATCH] Fix comment --- internal/rdb/rdb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rdb/rdb.go b/internal/rdb/rdb.go index 12255d8..de5781d 100644 --- a/internal/rdb/rdb.go +++ b/internal/rdb/rdb.go @@ -255,7 +255,7 @@ redis.call("SADD", KEYS[3], ARGV[5]) 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. func (r *RDB) ScheduleUnique(msg *base.TaskMessage, processAt time.Time, ttl time.Duration) error { bytes, err := json.Marshal(msg)