[VOL-2735]Durations should be specified as type time.Duration not int
Change-Id: Id1dbecc231b0708334723decbc943a57a60d8f1d
diff --git a/vendor/github.com/opencord/voltha-lib-go/v3/pkg/techprofile/config.go b/vendor/github.com/opencord/voltha-lib-go/v3/pkg/techprofile/config.go
index 4af2bd5..8a304be 100644
--- a/vendor/github.com/opencord/voltha-lib-go/v3/pkg/techprofile/config.go
+++ b/vendor/github.com/opencord/voltha-lib-go/v3/pkg/techprofile/config.go
@@ -17,6 +17,7 @@
import (
"github.com/opencord/voltha-lib-go/v3/pkg/db"
+ "time"
)
// tech profile default constants
@@ -28,7 +29,7 @@
defaultGemportsCount = 1
defaultPbits = "0b11111111"
- defaultKVStoreTimeout = 5 //in seconds
+ defaultKVStoreTimeout = 5 * time.Second //in seconds
// Tech profile path prefix in kv store
defaultKVPathPrefix = "service/voltha/technology_profiles"
@@ -78,7 +79,7 @@
KVStoreHost string
KVStorePort int
KVStoreType string
- KVStoreTimeout int
+ KVStoreTimeout time.Duration
KVBackend *db.Backend
TPKVPathPrefix string
TPFileKVPath string