updating voltha-lib-go for VOL-4994
Change-Id: Ie9db111b41ce3182b351c511a7e714a2c50f593f
diff --git a/VERSION b/VERSION
index e91d9be..eda862a 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-4.3.3
+4.3.4
diff --git a/go.mod b/go.mod
index 407b5fc..cd90b8d 100644
--- a/go.mod
+++ b/go.mod
@@ -13,7 +13,7 @@
github.com/gogo/protobuf v1.3.2
github.com/golang/protobuf v1.5.2
github.com/grpc-ecosystem/go-grpc-middleware 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/stretchr/testify v1.7.0
go.etcd.io/etcd v3.3.25+incompatible
diff --git a/go.sum b/go.sum
index 23f5ea5..1b5bf35 100644
--- a/go.sum
+++ b/go.sum
@@ -198,9 +198,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 45b15c4..d4cafe5 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.4.2
+# github.com/opencord/voltha-lib-go/v7 v7.4.3
## explicit
github.com/opencord/voltha-lib-go/v7/pkg/config
github.com/opencord/voltha-lib-go/v7/pkg/db