[VOL-3801] remove consul support
Bump up voltha-lib-go version to remove consul
Change-Id: I475639d35cde3e482766e4f189ac3746e8b6c179
diff --git a/rw_core/config/config.go b/rw_core/config/config.go
index 6a29e16..2788e56 100644
--- a/rw_core/config/config.go
+++ b/rw_core/config/config.go
@@ -24,14 +24,13 @@
// RW Core service default constants
const (
- ConsulStoreName = "consul"
EtcdStoreName = "etcd"
defaultGrpcAddress = ":50057"
defaultKafkaAdapterAddress = "127.0.0.1:9092"
defaultKafkaClusterAddress = "127.0.0.1:9094"
defaultKVStoreType = EtcdStoreName
defaultKVStoreTimeout = 5 * time.Second
- defaultKVStoreAddress = "127.0.0.1:2379" // Consul = 8500; Etcd = 2379
+ defaultKVStoreAddress = "127.0.0.1:2379" // Etcd = 2379
defaultKVTxnKeyDelTime = 60
defaultLogLevel = "WARN"
defaultBanner = false
diff --git a/rw_core/core/kv.go b/rw_core/core/kv.go
index 78965b7..84f707b 100644
--- a/rw_core/core/kv.go
+++ b/rw_core/core/kv.go
@@ -32,8 +32,6 @@
func newKVClient(ctx context.Context, storeType string, address string, timeout time.Duration) (kvstore.Client, error) {
logger.Infow(ctx, "kv-store-type", log.Fields{"store": storeType})
switch storeType {
- case "consul":
- return kvstore.NewConsulClient(ctx, address, timeout)
case "etcd":
return kvstore.NewEtcdClient(ctx, address, timeout, log.FatalLevel)
}