This commit is contained in:
Juan C. Müller 2023-02-19 17:02:15 -05:00
parent 1db5b7c557
commit ee5f061d24
No known key found for this signature in database
GPG key ID: A76E55A7FBA1E283

View file

@ -35,7 +35,7 @@ func main() {
})
// this 10ms deadline will cause our job that sleeps for 1s to fail
handler = handler.WithOpt(neoq.HandlerDeadline(10 * time.Millisecond))
handler = handler.WithOption(neoq.HandlerDeadline(10 * time.Millisecond))
err = nq.Listen(ctx, queue, handler)
if err != nil {