removed proxy suffix

This commit is contained in:
AndrewChubatiuk 2021-02-08 13:12:40 +02:00
parent 844ac16900
commit 99201412da

View file

@ -866,8 +866,7 @@ func (c *ServiceClient) serviceRegs(ops *operations, service *structs.Service, w
}
// newConnect returns (nil, nil) if there's no Connect-enabled service.
sidecarId := id + sidecarSuffix
connect, err := newConnect(sidecarId, service.Name, service.Connect, workload.Networks)
connect, err := newConnect(id, service.Name, service.Connect, workload.Networks)
if err != nil {
return nil, fmt.Errorf("invalid Consul Connect configuration for service %q: %v", service.Name, err)
}