Browse Source

Merge pull request #70 from fortyanov/WithPublisherOptionsReconnectInterval_fix

WithPublisherOptionsReconnectInterval fix
pull/73/head
Lane Wagner 4 years ago
committed by GitHub
parent
commit
d375d121d4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      publish.go

+ 2
- 2
publish.go View File

@ -58,8 +58,8 @@ type PublisherOptions struct {
// WithPublisherOptionsReconnectInterval sets the interval at which the publisher will
// attempt to reconnect to the rabbit server
func WithPublisherOptionsReconnectInterval(reconnectInterval time.Duration) func(options *ConsumerOptions) {
return func(options *ConsumerOptions) {
func WithPublisherOptionsReconnectInterval(reconnectInterval time.Duration) func(options *PublisherOptions) {
return func(options *PublisherOptions) {
options.ReconnectInterval = reconnectInterval
}
}


Loading…
Cancel
Save