From bd3c9b75e12e12d40f5e761e10a0b2ed39c28e6d Mon Sep 17 00:00:00 2001 From: Piotr Piotrowski Date: Tue, 8 Nov 2022 14:08:39 +0100 Subject: [PATCH] Improve description of RetryOnFailedConnect --- using-nats/developing-with-nats/reconnect/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/using-nats/developing-with-nats/reconnect/README.md b/using-nats/developing-with-nats/reconnect/README.md index a81e2cfdc..56476fa2d 100644 --- a/using-nats/developing-with-nats/reconnect/README.md +++ b/using-nats/developing-with-nats/reconnect/README.md @@ -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` \ No newline at end of file +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` \ No newline at end of file