Skip to content

Commit

Permalink
fix: propagate options on bokchoy.Handle
Browse files Browse the repository at this point in the history
  • Loading branch information
thoas committed Jul 21, 2019
1 parent d9cbee7 commit 6abc8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bokchoy.go
Expand Up @@ -310,7 +310,7 @@ func (b *Bokchoy) Publish(ctx context.Context, queueName string, payload interfa

// Handle registers a new handler to consume tasks for a queue.
func (b *Bokchoy) Handle(queueName string, sub Handler, options ...Option) {
b.HandleFunc(queueName, sub.Handle)
b.HandleFunc(queueName, sub.Handle, options...)
}

// HandleFunc registers a new handler function to consume tasks for a queue.
Expand Down

0 comments on commit 6abc8eb

Please sign in to comment.