Skip to content

Commit

Permalink
allow reconnect in NATS transporter
Browse files Browse the repository at this point in the history
  • Loading branch information
dehypnosis committed May 3, 2019
1 parent 6799213 commit 2ed3773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transit/nats/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func CreateNATSTransporter(options NATSOptions) transit.Transport {
opts := nats.GetDefaultOptions()
opts.Name = options.ClientID
opts.Url = options.URL
opts.AllowReconnect = false
opts.AllowReconnect = true
opts.ReconnectWait = time.Second * 2
opts.MaxReconnect = -1

Expand Down

0 comments on commit 2ed3773

Please sign in to comment.