We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8529f81 commit 5a06061Copy full SHA for 5a06061
transport/options.go
@@ -103,7 +103,7 @@ type ClientOptions struct {
103
addr string
104
number int
105
reconnectInterval int // reConnect Interval
106
- maxReconnectAttempts int // reconnectAttempts
+ maxReconnectAttempts int // max reconnect attempts
107
// tls
108
sslEnabled bool
109
tlsConfigBuilder TlsConfigBuilder
@@ -169,7 +169,7 @@ func WithClientTlsConfigBuilder(tlsConfigBuilder TlsConfigBuilder) ClientOption
169
}
170
171
172
-// WithReconnectInterval @maxReconnectAttempts is max reconnect attempts.
+// WithReconnectAttempts @maxReconnectAttempts is max reconnect attempts.
173
func WithReconnectAttempts(maxReconnectAttempts int) ClientOption {
174
return func(o *ClientOptions) {
175
if 0 < maxReconnectAttempts {
0 commit comments