Skip to content

Commit

Permalink
Properly resolve services using datacenters map
Browse files Browse the repository at this point in the history
Support was introduced in 7a21240 but dropped later, the docs still say this is supported, so this fixes this regression
  • Loading branch information
yuzawa-san committed Aug 3, 2023
1 parent 5dfa604 commit fb17b50
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public String description() {

@Override
public List<ServiceInstance> getInstances(final String serviceId) {
return getInstances(serviceId, new QueryParams(this.properties.getConsistencyMode()));
return getInstances(serviceId,
new QueryParams(this.properties.getDatacenters().get(serviceId), this.properties.getConsistencyMode()));
}

public List<ServiceInstance> getInstances(final String serviceId, final QueryParams queryParams) {
Expand Down

0 comments on commit fb17b50

Please sign in to comment.