2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-11-13 04:46:39 +08:00

Update comment

This commit is contained in:
Ken Hibino 2020-01-06 07:21:14 -08:00
parent 03cb6eef09
commit 1d99d99692

View File

@ -40,7 +40,7 @@ type (
) )
// MaxRetry returns an option to specify the max number of times // MaxRetry returns an option to specify the max number of times
// a task will be retried. // the task will be retried.
// //
// Negative retry count is treated as zero retry. // Negative retry count is treated as zero retry.
func MaxRetry(n int) Option { func MaxRetry(n int) Option {
@ -50,11 +50,11 @@ func MaxRetry(n int) Option {
return retryOption(n) return retryOption(n)
} }
// Queue returns an option to specify which queue to enqueue this task into. // Queue returns an option to specify which queue to enqueue the task into.
// //
// Queue name is case-insensitive and the lowercased version is used. // Queue name is case-insensitive and the lowercased version is used.
func Queue(qname string) Option { func Queue(name string) Option {
return queueOption(strings.ToLower(qname)) return queueOption(strings.ToLower(name))
} }
type option struct { type option struct {