Fix bad copy/paste and bad method scope

This commit is contained in:
Maxime Dor
2017-09-17 23:26:22 +02:00
parent 317fc367f8
commit 013be139c9
3 changed files with 5 additions and 6 deletions

View File

@@ -81,9 +81,7 @@ public class RestThreePidProvider extends RestProvider implements IThreePidProvi
@Override
public Optional<SingleLookupReply> find(SingleLookupRequest request) {
HttpUriRequest req = RestClientUtils.post(
cfg.getEndpoints().getAuth(),
gson,
"lookup",
cfg.getEndpoints().getIdentity().getSingle(), gson, "lookup",
new LookupSingleRequestJson(request.getType(), request.getThreePid()));
try (CloseableHttpResponse res = client.execute(req)) {
@@ -106,7 +104,8 @@ public class RestThreePidProvider extends RestProvider implements IThreePidProvi
.map(mapping -> new LookupSingleRequestJson(mapping.getMedium(), mapping.getValue()))
.collect(Collectors.toList());
HttpUriRequest req = RestClientUtils.post(cfg.getEndpoints().getAuth(), gson, "lookup", ioListRequest);
HttpUriRequest req = RestClientUtils.post(
cfg.getEndpoints().getIdentity().getBulk(), gson, "lookup", ioListRequest);
try (CloseableHttpResponse res = client.execute(req)) {
mappings = new ArrayList<>();

View File

@@ -46,7 +46,7 @@ public class MatrixConfig {
}
@PostConstruct
private void postConstruct() {
public void build() {
log.info("--- Matrix config ---");
if (StringUtils.isBlank(domain)) {

View File

@@ -130,7 +130,7 @@ public class RestBackendConfig {
}
@PostConstruct
private void postConstruct() {
public void build() {
log.info("--- REST backend config ---");
log.info("Enabled: {}", isEnabled());