This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/develop by this push:
new 0dbc64d1a chore(clean): Remove unused XDS code (#3147)
0dbc64d1a is described below
commit 0dbc64d1a9846a7347c882afa1ba6835f05df24d
Author: marsevilspirit <[email protected]>
AuthorDate: Wed Dec 24 16:20:13 2025 +0800
chore(clean): Remove unused XDS code (#3147)
* chore(clean): delete unused xds code
* delete blank
---
common/constant/key.go | 5 -----
common/constant/loadbalance.go | 1 -
common/constant/xds.go | 9 ---------
registry/options.go | 6 ------
4 files changed, 21 deletions(-)
diff --git a/common/constant/key.go b/common/constant/key.go
index 56254299f..a5312b7ff 100644
--- a/common/constant/key.go
+++ b/common/constant/key.go
@@ -118,7 +118,6 @@ const (
TokenFilterKey = "token"
TpsLimitFilterKey = "tps"
TracingFilterKey = "tracing"
- XdsCircuitBreakerKey = "xds_circuit_reaker"
OTELServerTraceKey = "otelServerTrace"
OTELClientTraceKey = "otelClientTrace"
)
@@ -316,10 +315,6 @@ const (
ApolloKey = "apollo"
)
-const (
- XDSRegistryKey = "xds"
-)
-
const (
EtcdV3Key = "etcdv3"
)
diff --git a/common/constant/loadbalance.go b/common/constant/loadbalance.go
index c30a7062d..c6c8747b1 100644
--- a/common/constant/loadbalance.go
+++ b/common/constant/loadbalance.go
@@ -23,7 +23,6 @@ const (
LoadBalanceKeyRandom = "random"
LoadBalanceKeyRoundRobin = "roundrobin"
LoadBalanceKeyP2C = "p2c"
- LoadXDSRingHash = "xdsringhash"
LoadBalanceKeyInterleavedWeightedRoundRobin =
"interleavedweightedroundrobin"
LoadBalanceKeyAliasMethod = "aliasmethod"
)
diff --git a/common/constant/xds.go b/common/constant/xds.go
index 62903b874..27a59f240 100644
--- a/common/constant/xds.go
+++ b/common/constant/xds.go
@@ -29,12 +29,3 @@ const (
MeshDeleteClusterPrefix = "-"
MeshAnyAddrMatcher = "*"
)
-
-const (
- XDSMetadataClusterIDKey = "CLUSTER_ID"
- XDSMetadataLabelsKey = "LABELS"
-
- XDSMetadataDefaultDomainName = "Kubernetes"
-
- XDSMetadataDubboGoMapperKey = "DUBBO_GO"
-)
diff --git a/registry/options.go b/registry/options.go
index f9be163f9..ba309827a 100644
--- a/registry/options.go
+++ b/registry/options.go
@@ -75,12 +75,6 @@ func WithPolaris() Option {
}
}
-func WithXDS() Option {
- return func(opts *Options) {
- opts.Registry.Protocol = constant.XDSRegistryKey
- }
-}
-
func WithZookeeper() Option {
return func(opts *Options) {
opts.Registry.Protocol = constant.ZookeeperKey