From b7c21871b1932f686e36273eb885088c07c73580 Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Thu, 6 Jun 2019 19:12:31 +0200 Subject: [PATCH] Add TODO --- client_manager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client_manager.go b/client_manager.go index a61d8db..2e34e76 100644 --- a/client_manager.go +++ b/client_manager.go @@ -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()