From 21516be803a0c0c0a462e5a69410d22bc9075638 Mon Sep 17 00:00:00 2001 From: bob Date: Fri, 23 Dec 2022 22:14:20 +0800 Subject: [PATCH] del front --- common/constant/default.go | 1 - common/constant/key.go | 3 --- config/config_utils.go | 4 ---- 3 files changed, 8 deletions(-) diff --git a/common/constant/default.go b/common/constant/default.go index 93ab319d08..747f409e0a 100644 --- a/common/constant/default.go +++ b/common/constant/default.go @@ -89,5 +89,4 @@ const ( const ( ServiceDiscoveryDefaultGroup = "DEFAULT_GROUP" - NotAvailable = "N/A" ) diff --git a/common/constant/key.go b/common/constant/key.go index 68c7d45262..7adafa75bb 100644 --- a/common/constant/key.go +++ b/common/constant/key.go @@ -169,9 +169,6 @@ const ( RegistrySimplifiedKey = "simplified" RegistryNamespaceKey = "registry.namespace" RegistryGroupKey = "registry.group" - RegistryTypeInterface = "interface" - RegistryTypeService = "service" - RegistryTypeAll = "all" ) const ( diff --git a/config/config_utils.go b/config/config_utils.go index fa6b51b2d5..f08d1b901a 100644 --- a/config/config_utils.go +++ b/config/config_utils.go @@ -116,7 +116,3 @@ func verify(s interface{}) error { func clientNameID(config extension.Config, protocol, address string) string { return strings.Join([]string{config.Prefix(), protocol, address}, "-") } - -func isValid(addr string) bool { - return addr != "" && addr != constant.NotAvailable -}