1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

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