From 3ae0e7f528fa89acddd25fe551792adbfdf359e5 Mon Sep 17 00:00:00 2001 From: Mehran Poursadeghi Date: Sat, 28 Aug 2021 02:17:03 +0430 Subject: [PATCH] Fix readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0ff22f4..e1140e9 100644 --- a/README.md +++ b/README.md @@ -215,7 +215,7 @@ func main() { info, err = client.Enqueue(task, asynq.Queue("critical"), asynq.Timeout(30*time.Second)) if err != nil { - log.Fatal("could not enqueue task: %v", err) + log.Fatalf("could not enqueue task: %v", err) } log.Printf("enqueued task: id=%s queue=%s", info.ID, info.Queue) } @@ -239,7 +239,7 @@ const redisAddr = "127.0.0.1:6379" func main() { srv := asynq.NewServer( - asynq.RedisClientOpt{Addr: redisAddr} + asynq.RedisClientOpt{Addr: redisAddr}, asynq.Config{ // Specify how many concurrent workers to use Concurrency: 10,