Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions consumer/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,6 @@ func WithVIPChannel(enable bool) Option {
}
}

// WithRetry return a Option that specifies the retry times when send failed.
// TODO: use retry middleware instead
func WithRetry(retries int) Option {
return func(opts *consumerOptions) {
opts.RetryTimes = retries
}
}

func WithCredentials(c primitive.Credentials) Option {
return func(options *consumerOptions) {
options.ClientOptions.Credentials = c
Expand Down
Loading