[VOL-5429] - update voltha-lib-go version to 7.6.6
Change-Id: Id6ebb05bba5c52a94161a08545e80106746e9cca
Signed-off-by: Sridhar Ravindra <sridhar.ravindra@radisys.com>
diff --git a/vendor/github.com/opencord/voltha-lib-go/v7/pkg/grpc/client.go b/vendor/github.com/opencord/voltha-lib-go/v7/pkg/grpc/client.go
index effe0b3..e8a0832 100644
--- a/vendor/github.com/opencord/voltha-lib-go/v7/pkg/grpc/client.go
+++ b/vendor/github.com/opencord/voltha-lib-go/v7/pkg/grpc/client.go
@@ -262,6 +262,9 @@
c.stateLock.Lock()
if !c.done && (c.state == stateConnected || c.state == stateValidatingConnection) {
// Handle only connected state here. We need the validating state to know if we need to backoff before a retry
+ if c.state == stateConnected {
+ c.state = stateDisconnected
+ }
logger.Warnw(ctx, "sending-disconnect-event", log.Fields{"api-endpoint": c.serverEndPoint, "client": c.clientEndpoint, "curr-state": stateConnected, "new-state": c.state})
c.events <- eventDisconnected
} else {
@@ -529,7 +532,7 @@
connectionValidationFail := false
c.stateLock.Lock()
logger.Debugw(ctx, "endpoint-disconnected", log.Fields{"api-endpoint": c.serverEndPoint, "curr-state": c.state, "client": c.clientEndpoint})
- if c.state == stateConnected || c.state == stateValidatingConnection {
+ if c.state == stateValidatingConnection {
connectionValidationFail = true
c.state = stateDisconnected
}
@@ -551,7 +554,7 @@
}
c.connectionLock.RLock()
if !c.done {
- c.events <- eventValidatingConnection
+ c.events <- eventConnecting
}
c.connectionLock.RUnlock()
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 090f947..5b39415 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -234,7 +234,7 @@
github.com/modern-go/concurrent
# github.com/modern-go/reflect2 v1.0.1
github.com/modern-go/reflect2
-# github.com/opencord/voltha-lib-go/v7 v7.6.5
+# github.com/opencord/voltha-lib-go/v7 v7.6.6
## explicit
github.com/opencord/voltha-lib-go/v7/pkg/adapters/common
github.com/opencord/voltha-lib-go/v7/pkg/config