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 3a191afc9 refactor: replace hardcoded 'etcdv3' with constant.EtcdV3Key
(#2963)
3a191afc9 is described below
commit 3a191afc9b17764d75fc2771ac8c69e393061eec
Author: CAICAII <[email protected]>
AuthorDate: Thu Jul 31 19:43:43 2025 +0800
refactor: replace hardcoded 'etcdv3' with constant.EtcdV3Key (#2963)
Maintain consistency with other registry options and resolve TODO comment.
Signed-off-by: yxw <[email protected]>
---
registry/options.go | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/registry/options.go b/registry/options.go
index e9f1fb285..b96e632bb 100644
--- a/registry/options.go
+++ b/registry/options.go
@@ -59,8 +59,7 @@ type Option func(*Options)
func WithEtcdV3() Option {
return func(opts *Options) {
- // todo(DMwangnima): move etcdv3 to constant
- opts.Registry.Protocol = "etcdv3"
+ opts.Registry.Protocol = constant.EtcdV3Key
}
}