Skip to content

Commit 38deaf2

Browse files
author
xinfan.wu(吴歆帆)
committed
refact:rename the variable name in TCP reconnect
1 parent 972421e commit 38deaf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transport/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ func (c *client) reConnect() {
439439

440440
sessionNum = c.sessionNum()
441441
if maxReconnectAttempts <= sessionNum || maxReconnectAttempts < reconnectAttempts {
442-
//Exit when the number of connection pools is sufficient or the reconnection times exceeds the connections numbers.
442+
//exit reconnect when the number of connection pools is sufficient or the current reconnection attempts exceeds the max reconnection attempts.
443443
break
444444
}
445445
c.connect()

0 commit comments

Comments
 (0)