Skip to content

Commit

Permalink
Merge branch 'refs/heads/v2-feature-main'
Browse files Browse the repository at this point in the history
  • Loading branch information
dobyte committed Jul 15, 2024
2 parents 69a3e56 + 254d5c0 commit cd8cf8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cluster/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions transport/transporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ type Transporter interface {
// SetDefaultDiscovery 设置默认的服务发现组件
SetDefaultDiscovery(discovery registry.Discovery)
}

type NewMeshClient func(target string) (Client, error)

0 comments on commit cd8cf8b

Please sign in to comment.