mirror of
https://github.com/hibiken/asynq.git
synced 2025-04-21 00:00:20 +08:00
docs: correct typo (deafult => default)
This commit is contained in:
parent
5c723f597e
commit
9116c096ec
@ -237,7 +237,7 @@ func composeOptions(opts ...Option) (option, error) {
|
|||||||
retry: defaultMaxRetry,
|
retry: defaultMaxRetry,
|
||||||
queue: base.DefaultQueueName,
|
queue: base.DefaultQueueName,
|
||||||
taskID: uuid.NewString(),
|
taskID: uuid.NewString(),
|
||||||
timeout: 0, // do not set to deafultTimeout here
|
timeout: 0, // do not set to defaultTimeout here
|
||||||
deadline: time.Time{},
|
deadline: time.Time{},
|
||||||
processAt: time.Now(),
|
processAt: time.Now(),
|
||||||
}
|
}
|
||||||
@ -317,7 +317,7 @@ func (c *Client) Close() error {
|
|||||||
// The argument opts specifies the behavior of task processing.
|
// The argument opts specifies the behavior of task processing.
|
||||||
// If there are conflicting Option values the last one overrides others.
|
// If there are conflicting Option values the last one overrides others.
|
||||||
// Any options provided to NewTask can be overridden by options passed to Enqueue.
|
// Any options provided to NewTask can be overridden by options passed to Enqueue.
|
||||||
// By deafult, max retry is set to 25 and timeout is set to 30 minutes.
|
// By default, max retry is set to 25 and timeout is set to 30 minutes.
|
||||||
//
|
//
|
||||||
// If no ProcessAt or ProcessIn options are provided, the task will be pending immediately.
|
// If no ProcessAt or ProcessIn options are provided, the task will be pending immediately.
|
||||||
//
|
//
|
||||||
@ -333,7 +333,7 @@ func (c *Client) Enqueue(task *Task, opts ...Option) (*TaskInfo, error) {
|
|||||||
// The argument opts specifies the behavior of task processing.
|
// The argument opts specifies the behavior of task processing.
|
||||||
// If there are conflicting Option values the last one overrides others.
|
// If there are conflicting Option values the last one overrides others.
|
||||||
// Any options provided to NewTask can be overridden by options passed to Enqueue.
|
// Any options provided to NewTask can be overridden by options passed to Enqueue.
|
||||||
// By deafult, max retry is set to 25 and timeout is set to 30 minutes.
|
// By default, max retry is set to 25 and timeout is set to 30 minutes.
|
||||||
//
|
//
|
||||||
// If no ProcessAt or ProcessIn options are provided, the task will be pending immediately.
|
// If no ProcessAt or ProcessIn options are provided, the task will be pending immediately.
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user