add broker and registry to metedata
This commit is contained in:
parent
60d75699e4
commit
11a198d2e9
@ -42,6 +42,8 @@ func serviceDef(opts server.Options) *registry.Service {
|
|||||||
}
|
}
|
||||||
|
|
||||||
node.Metadata["server"] = "http"
|
node.Metadata["server"] = "http"
|
||||||
|
node.Metadata["broker"] = opts.Broker.String()
|
||||||
|
node.Metadata["registry"] = opts.Registry.String()
|
||||||
|
|
||||||
return ®istry.Service{
|
return ®istry.Service{
|
||||||
Name: opts.Name,
|
Name: opts.Name,
|
||||||
|
Loading…
Reference in New Issue
Block a user