From 37dfd746d432ad15fb9f0652ed1cf6c10d57a461 Mon Sep 17 00:00:00 2001 From: MinJae Kwon Date: Thu, 17 Dec 2020 23:05:16 +0900 Subject: [PATCH] fix: syntax error in readme example --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eaecdae..8637f3c 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,8 @@ In your application code, import the above package and use [`Client`](https://pk package main import ( + "fmt" + "log" "time" "github.com/hibiken/asynq" @@ -179,7 +181,7 @@ func main() { // Options include MaxRetry, Queue, Timeout, Deadline, Unique etc. // ---------------------------------------------------------------------------- - c.SetDefaultOptions(tasks.ImageProcessing, asynq.MaxRetry(10), asynq.Timeout(3*time.Minute)) + c.SetDefaultOptions(tasks.TypeImageResize, asynq.MaxRetry(10), asynq.Timeout(3*time.Minute)) t = tasks.NewImageResizeTask("some/blobstore/path") res, err = c.Enqueue(t)