Skip to content

Commit

Permalink
Merge pull request #528 from nats-io/retryonfailedconnect-comment-fix
Browse files Browse the repository at this point in the history
Improve description of RetryOnFailedConnect
  • Loading branch information
gcolliso committed Nov 8, 2022
2 parents e51f239 + bd3c9b7 commit 831214a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion using-nats/developing-with-nats/reconnect/README.md
Expand Up @@ -83,4 +83,4 @@ ReconnectBufSize is the size of the backing bufio during reconnect. Once this ha

* `RetryOnFailedConnect bool`

RetryOnFailedConnect sets the connection in reconnecting state right 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 it fails to connect (after exhausting the MaxReconnect attempts). Default is `false`
RetryOnFailedConnect sets the connection in reconnecting state right 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 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). Default is `false`

0 comments on commit 831214a

Please sign in to comment.