Skip to content

Commit

Permalink
Merge pull request wagslane#42 from tscheckenbach/main
Browse files Browse the repository at this point in the history
Add function to add QueueArgs to consume options
  • Loading branch information
wagslane authored Oct 1, 2021
2 parents 4d14909 + fd1a3fe commit 7fdaafd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions consume_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,10 @@ func WithConsumeOptionsConsumerExclusive(options *ConsumeOptions) {
func WithConsumeOptionsConsumerNoWait(options *ConsumeOptions) {
options.ConsumerNoWait = true
}

// WithConsumeOptionsQueueArgs returns a function that sets the queue arguments
func WithConsumeOptionsQueueArgs(args Table) func(*ConsumeOptions) {
return func(options *ConsumeOptions) {
options.QueueArgs = args
}
}

0 comments on commit 7fdaafd

Please sign in to comment.