Skip to content

Commit

Permalink
Use unlimited retries for reconnect
Browse files Browse the repository at this point in the history
Signed-off-by: Yilun <[email protected]>
  • Loading branch information
yilunzhang committed Mar 28, 2023
1 parent 4cdd69b commit e1d23ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ func (c *Client) handleReconnect() {
log.Printf("Reconnect in %v ms...", c.config.MinReconnectInterval)
time.Sleep(time.Duration(c.config.MinReconnectInterval) * time.Millisecond)

err := c.connect(0)
err := c.connect(-1)
if err != nil {
log.Println(err)
c.Close()
Expand Down

0 comments on commit e1d23ce

Please sign in to comment.