Skip to content

Commit

Permalink
style: show unlimited reconnection usage at the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mojixcoder authored Sep 10, 2023
1 parent 28ec47e commit 745f840
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 745f840

Please sign in to comment.