This commit is contained in:
Mickael Remond 2019-06-06 19:12:31 +02:00
parent a451e64638
commit b7c21871b1
No known key found for this signature in database
GPG key ID: E6F6045D79965AA3

View file

@ -59,6 +59,8 @@ func (cm *ClientManager) connect() {
var err error
cm.Metrics = initMetrics()
// TODO: Test for non recoverable errors (invalid username and password) and return an error
// to start caller. We do not want to retry on non recoverable errors.
if cm.Client.Session, err = cm.Client.Connect(); err != nil {
log.Printf("Connection error: %v\n", err)
backoff.Wait()