From 9116c096ecf3e8493f9997d2b906fa847b0d1a2c Mon Sep 17 00:00:00 2001 From: Jeffrey Lo Date: Wed, 4 May 2022 20:07:09 -0400 Subject: [PATCH] docs: correct typo (deafult => default) --- client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index dc5c3d1..7948036 100644 --- a/client.go +++ b/client.go @@ -237,7 +237,7 @@ func composeOptions(opts ...Option) (option, error) { retry: defaultMaxRetry, queue: base.DefaultQueueName, taskID: uuid.NewString(), - timeout: 0, // do not set to deafultTimeout here + timeout: 0, // do not set to defaultTimeout here deadline: time.Time{}, processAt: time.Now(), } @@ -317,7 +317,7 @@ func (c *Client) Close() error { // The argument opts specifies the behavior of task processing. // If there are conflicting Option values the last one overrides others. // 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. // @@ -333,7 +333,7 @@ func (c *Client) Enqueue(task *Task, opts ...Option) (*TaskInfo, error) { // The argument opts specifies the behavior of task processing. // If there are conflicting Option values the last one overrides others. // 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. //