From 76c86348c19f9cfb492d2e0f067c2a3463df5d88 Mon Sep 17 00:00:00 2001 From: guangwu Date: Sat, 21 Oct 2023 16:03:30 +0800 Subject: [PATCH] fix: typo --- client/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/README.md b/client/README.md index ce140619..a5666ce6 100644 --- a/client/README.md +++ b/client/README.md @@ -22,7 +22,7 @@ jobID, err := c.Publish("q1", []byte("hello"), 0, 3, 5) ### Consumer example ``` -// Consume a job from the q1, if there's not job availble, wait until 12s passed (polling). +// Consume a job from the q1, if there's not job available, wait until 12s passed (polling). // And if this consumer fail to ACK the job in 10s, the job can be retried by other consumers. job, err := c.Consume("q1", 10, 12) if err != nil { @@ -39,7 +39,7 @@ if err != nil { ``` ```$golang -// Consume 5 jobs from the q1, if there's not job availble, wait until 12s passed (polling). +// Consume 5 jobs from the q1, if there's not job available, wait until 12s passed (polling). // If there are some jobs but not enough 5, return jobs as much as possible. // And if this consumer fail to ACK any job in 10s, the job can be retried by other consumers. jobs, err := c.BatchConsume("q1", 5, 10, 12)