From 38deaf2e59453e23f8ce21483989b9a9818325ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?xinfan=2Ewu=28=E5=90=B4=E6=AD=86=E5=B8=86=29?= Date: Sun, 16 Jun 2024 17:22:49 +0800 Subject: [PATCH] refact:rename the variable name in TCP reconnect --- transport/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/client.go b/transport/client.go index 49d0497..454e749 100644 --- a/transport/client.go +++ b/transport/client.go @@ -439,7 +439,7 @@ func (c *client) reConnect() { sessionNum = c.sessionNum() if maxReconnectAttempts <= sessionNum || maxReconnectAttempts < reconnectAttempts { - //Exit when the number of connection pools is sufficient or the reconnection times exceeds the connections numbers. + //exit reconnect when the number of connection pools is sufficient or the current reconnection attempts exceeds the max reconnection attempts. break } c.connect()