[VOL-5429] - update voltha-lib-go version to 7.6.6
Change-Id: Iff363d4cf9948b89d5520e101d2ac0912e3abb83
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 d2d1880..bba40c6 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -137,7 +137,7 @@
github.com/klauspost/compress/huff0
github.com/klauspost/compress/zstd
github.com/klauspost/compress/zstd/internal/xxhash
-# 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/config
github.com/opencord/voltha-lib-go/v7/pkg/db