Skip to content

Commit

Permalink
refact:rename the variable name in TCP reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
No-SilverBullet committed Jun 16, 2024
1 parent 972421e commit 38deaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 38deaf2

Please sign in to comment.