Remove Port from registry

This commit is contained in:
Asim Aslam 2019-07-08 08:01:42 +01:00 committed by Vasiliy Tolstov
parent dfffa16590
commit df9fa0c938

View File

@ -534,8 +534,7 @@ func (g *grpcServer) Register() error {
// register service
node := &registry.Node{
Id: config.Name + "-" + config.Id,
Address: addr,
Port: port,
Address: fmt.Sprintf("%s:%d", addr, port),
Metadata: config.Metadata,
}
@ -658,8 +657,7 @@ func (g *grpcServer) Deregister() error {
node := &registry.Node{
Id: config.Name + "-" + config.Id,
Address: addr,
Port: port,
Address: fmt.Sprintf("%s:%d", addr, port),
}
service := &registry.Service{