updating voltha-lib-go for VOL-4994
Change-Id: Ic6275762212d895bfaa7eb295ee0d9d09fdf29ae
diff --git a/VERSION b/VERSION
index 0ae84e4..15a2799 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.2.1.1-dev
+3.3.0
diff --git a/go.mod b/go.mod
index 66fd3ad..8129508 100644
--- a/go.mod
+++ b/go.mod
@@ -17,7 +17,7 @@
github.com/golang/mock v1.6.0
github.com/golang/protobuf v1.5.2
github.com/google/uuid v1.3.0
- github.com/opencord/voltha-lib-go/v7 v7.4.2
+ github.com/opencord/voltha-lib-go/v7 v7.4.3
github.com/opencord/voltha-protos/v5 v5.4.6
github.com/opentracing/opentracing-go v1.2.0
github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2
diff --git a/go.sum b/go.sum
index 27b6cb7..3e2d841 100644
--- a/go.sum
+++ b/go.sum
@@ -206,9 +206,8 @@
github.com/onsi/gomega v1.10.3/go.mod h1:V9xEwhxec5O8UDM77eCW8vLymOMltsqPVYWrpDsH8xc=
github.com/onsi/gomega v1.14.0 h1:ep6kpPVwmr/nTbklSx2nrLNSIO62DoYAhnPNIMhK8gI=
github.com/onsi/gomega v1.14.0/go.mod h1:cIuvLEne0aoVhAgh/O6ac0Op8WWw9H6eYCriF+tEHG0=
-github.com/opencord/voltha-lib-go/v7 v7.4.2 h1:0VnlWxVFZXOF52515upTwIze3KRoFmUcJyKQAo1aKOI=
-github.com/opencord/voltha-lib-go/v7 v7.4.2/go.mod h1:3XnWQBHALGZTm5n3j401zKGG9aL2UqSU3/owGwNmcxM=
-github.com/opencord/voltha-protos/v5 v5.3.8/go.mod h1:ZGcyW79kQKIo7AySo1LRu613E6uiozixrCF0yNB/4x8=
+github.com/opencord/voltha-lib-go/v7 v7.4.3 h1:+NkG7wciQ2AdpJkC1zvCym4NHUaV9ZR+vvcyawdRpo0=
+github.com/opencord/voltha-lib-go/v7 v7.4.3/go.mod h1:bP+G0akrcHwZY0ISiWS0anuJwtUpXTjkPpoku6PIVX0=
github.com/opencord/voltha-protos/v5 v5.4.6 h1:NNMJA1eyu2sbUyOaeqwIVl+n2DjoUs4jK8y/GwIKYLE=
github.com/opencord/voltha-protos/v5 v5.4.6/go.mod h1:ZGcyW79kQKIo7AySo1LRu613E6uiozixrCF0yNB/4x8=
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
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