Fix some mapping issues while we're at it

This commit is contained in:
Asim
2016-04-09 22:19:03 +01:00
parent 9d7bd3f424
commit e2855c4bc2
2 changed files with 5 additions and 20 deletions

View File

@@ -200,17 +200,10 @@ func (c *consulRegistry) GetService(name string) ([]*Service, error) {
// address is service address
address := s.Service.Address
// if we can't get the new type of version
// if we can't get the version we bail
// use old the old ways
if !found {
// id was set as node
id = s.Node.Node
// key was service id
key = s.Service.ID
// version was service id
version = s.Service.ID
// address was address
address = s.Node.Address
continue
}
svc, ok := serviceMap[key]