Skip to content

Commit

Permalink
[IMPROVED] Comment on RetryOnFailedConnect (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpio committed Nov 8, 2022
1 parent 980f955 commit be36353
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nats.go
Expand Up @@ -449,8 +449,9 @@ type Options struct {
// away if it can't connect to a server in the initial set. The
// MaxReconnect and ReconnectWait options are used for this process,
// similarly to when an established connection is disconnected.
// If a ReconnectHandler is set, it will be invoked when the connection
// is established, and if a ClosedHandler is set, it will be invoked if
// If a ReconnectHandler is set, it will be invoked on the first
// successful reconnect attempt (if the initial connect fails),
// and if a ClosedHandler is set, it will be invoked if
// it fails to connect (after exhausting the MaxReconnect attempts).
RetryOnFailedConnect bool

Expand Down

0 comments on commit be36353

Please sign in to comment.