updating voltha-lib-go for VOL-4994
Change-Id: Ic6275762212d895bfaa7eb295ee0d9d09fdf29ae
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 307da44..d61a509 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,9 +262,6 @@
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 {
@@ -532,7 +529,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 == stateValidatingConnection {
+ if c.state == stateConnected || c.state == stateValidatingConnection {
connectionValidationFail = true
c.state = stateDisconnected
}
@@ -554,7 +551,7 @@
}
c.connectionLock.RLock()
if !c.done {
- c.events <- eventConnecting
+ c.events <- eventValidatingConnection
}
c.connectionLock.RUnlock()
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 5a32d1c..8fafeca 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -231,7 +231,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.4.2
+# github.com/opencord/voltha-lib-go/v7 v7.4.3
## explicit
github.com/opencord/voltha-lib-go/v7/pkg/adapters/common
github.com/opencord/voltha-lib-go/v7/pkg/config