We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6dd59a6 + 73a48be commit c321338Copy full SHA for c321338
1 file changed
backend/pkg/transport/network/tcp/client.go
@@ -40,7 +40,7 @@ func (client *Client) Dial() (net.Conn, error) {
40
var err error
41
var conn net.Conn
42
client.logger.Info().Msg("dialing")
43
- for ; client.currentRetries < client.config.MaxConnectionRetries; client.currentRetries++ {
+ for client.currentRetries = client.config.MaxConnectionRetries; client.currentRetries > 0; client.currentRetries-- {
44
conn, err = client.config.DialContext(client.config.Context, "tcp", client.address)
45
if err == nil {
46
client.logger.Info().Msg("connected")
0 commit comments