nodece commented on code in PR #1197:
URL: https://github.com/apache/pulsar-client-go/pull/1197#discussion_r1672387453
##########
pulsar/producer_partition.go:
##########
@@ -473,11 +485,10 @@ func (p *partitionProducer)
reconnectToBroker(connectionClosed *connectionClosed
delayReconnectTime = 0
assignedBrokerURL = connectionClosed.assignedBrokerURL
connectionClosed = nil // Only attempt once
- } else if p.options.BackoffPolicy == nil {
- delayReconnectTime = defaultBackoff.Next()
} else {
- delayReconnectTime = p.options.BackoffPolicy.Next()
+ delayReconnectTime = bo.Next()
}
+ totalDelayReconnectTime += delayReconnectTime
Review Comment:
```suggestion
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]