diff --git a/client/README.md b/client/README.md index ce14061..a5666ce 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)