Skip to content

Commit

Permalink
Merge pull request #1394 from mojixcoder/patch-1
Browse files Browse the repository at this point in the history
style: show unlimited reconnection usage at the comments
  • Loading branch information
wallyqs committed Sep 10, 2023
2 parents 28ec47e + 745f840 commit 8e75bfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,7 @@ func ReconnectWait(t time.Duration) Option {
}

// MaxReconnects is an Option to set the maximum number of reconnect attempts.
// If negative, it will never stop trying to reconnect.
// Defaults to 60.
func MaxReconnects(max int) Option {
return func(o *Options) error {
Expand Down

0 comments on commit 8e75bfd

Please sign in to comment.