contribsys / faktory

Language-agnostic persistent background job server
https://contribsys.com/faktory/
Other
5.78k stars 230 forks source link

Fix comment providing an invalid example #398

Closed fkollmann closed 2 years ago

fkollmann commented 2 years ago

The original examples shows to call batch.Commit(). However, batch.Jobs() already calls it and the example code will cause an error stating that the batch has already been committed.

Remove the line which is not required.