mirror of https://github.com/status-im/consul.git
Swap in structs.EqualPartitions for cmp
This commit is contained in:
parent
37a16e9487
commit
8006c6df73
|
@ -506,7 +506,7 @@ func makeLoadAssignmentEndpointGroup(
|
|||
gatewayKey = localKey
|
||||
}
|
||||
|
||||
if gatewayKey.IsEmpty() || (localKey.Partition == target.Partition && localKey.Datacenter == target.Datacenter) {
|
||||
if gatewayKey.IsEmpty() || (structs.EqualPartitions(localKey.Partition, target.Partition) && localKey.Datacenter == target.Datacenter) {
|
||||
// Gateways are not needed if the request isn't for a remote DC or partition.
|
||||
return loadAssignmentEndpointGroup{
|
||||
Endpoints: realEndpoints,
|
||||
|
|
Loading…
Reference in New Issue