From 254d5c05aaad04383bc54af49744596ffaff8b02 Mon Sep 17 00:00:00 2001 From: fuxiao <576101059@qq.com> Date: Mon, 15 Jul 2024 16:58:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cluster/node/node.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cluster/node/node.go b/cluster/node/node.go index 581fd67..f6423f2 100644 --- a/cluster/node/node.go +++ b/cluster/node/node.go @@ -85,6 +85,10 @@ func (n *Node) Start() { return } + if n.opts.transporter != nil { + n.opts.transporter.SetDefaultDiscovery(n.opts.registry) + } + n.startLinkServer() n.registerServiceInstance()