From 745f8408b4f84221e282b37db54465abcb84ff4e Mon Sep 17 00:00:00 2001 From: Mojtaba Arezoumand Date: Sun, 10 Sep 2023 18:52:10 +0330 Subject: [PATCH] style: show unlimited reconnection usage at the comments --- nats.go | 1 + 1 file changed, 1 insertion(+) diff --git a/nats.go b/nats.go index 8b9fd8862..fca93f673 100644 --- a/nats.go +++ b/nats.go @@ -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 {