add broker and registry to metedata

This commit is contained in:
xinfei.wu 2018-12-20 13:54:21 +08:00 committed by Vasiliy Tolstov
parent 60d75699e4
commit 11a198d2e9

View File

@ -42,6 +42,8 @@ func serviceDef(opts server.Options) *registry.Service {
}
node.Metadata["server"] = "http"
node.Metadata["broker"] = opts.Broker.String()
node.Metadata["registry"] = opts.Registry.String()
return &registry.Service{
Name: opts.Name,