Skip to content

Commit

Permalink
chore: maintenance changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Feb 17, 2025
1 parent 130fe71 commit 75891ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discovery/nats/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ func (d *Discovery) Initialize() error {

// let us connect using an exponential backoff mechanism
// create a new instance of retrier that will try a maximum of five times, with
// an initial delay of 100 ms and a maximum delay of opts.ReconnectWait
retrier := retry.NewRetrier(d.config.MaxJoinAttempts, 100*time.Millisecond, opts.ReconnectWait)
// an initial delay and a maximum delay of opts.ReconnectWait
retrier := retry.NewRetrier(d.config.MaxJoinAttempts, opts.ReconnectWait, opts.ReconnectWait)
if err = retrier.Run(func() error {
connection, err = opts.Connect()
if err != nil {
Expand Down

0 comments on commit 75891ff

Please sign in to comment.