1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

Merge branch 'master' of ssh://github.com/micro/go-micro

This commit is contained in:
Asim Aslam 2020-02-02 19:50:09 +00:00
commit 079102ea59

View File

@ -562,11 +562,17 @@ func (g *grpcServer) Register() error {
return err
}
// make copy of metadata
md := make(meta.Metadata)
for k, v := range config.Metadata {
md[k] = v
}
// register service
node := &registry.Node{
Id: config.Name + "-" + config.Id,
Address: mnet.HostPort(addr, port),
Metadata: config.Metadata,
Metadata: md,
}
node.Metadata["broker"] = config.Broker.String()