ソースを参照

refactor: 优化注册中心的Namespace处理

lihf 3 ヶ月 前
コミット
484cca7930
1 ファイル変更1 行追加1 行削除
  1. 1 1
      registry/registry.go

+ 1 - 1
registry/registry.go

@@ -33,7 +33,7 @@ func Context(ctx context.Context) Option {
 
 // Namespace with registry namespace.
 func Namespace(ns string) Option {
-	return func(o *options) { o.namespace = ns }
+	return func(o *options) { o.namespace = fmt.Sprintf("/%s/naming", ns) }
 }
 
 // RegisterTTL with register ttl.