Skip to content

Commit

Permalink
fix: typo (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Oct 21, 2023
1 parent 7036c25 commit cbfe528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
Expand Down

0 comments on commit cbfe528

Please sign in to comment.