Add broker and server to metadata

This commit is contained in:
Asim 2016-01-04 01:27:05 +00:00
parent ecdaea7a67
commit 227adc490c

View File

@ -192,6 +192,8 @@ func (s *rpcServer) Register() error {
}
node.Metadata["transport"] = config.Transport.String()
node.Metadata["broker"] = config.Broker.String()
node.Metadata["server"] = s.String()
s.RLock()
var endpoints []*registry.Endpoint