Fix bad copy/paste and bad method scope
This commit is contained in:
@@ -81,9 +81,7 @@ public class RestThreePidProvider extends RestProvider implements IThreePidProvi
|
|||||||
@Override
|
@Override
|
||||||
public Optional<SingleLookupReply> find(SingleLookupRequest request) {
|
public Optional<SingleLookupReply> find(SingleLookupRequest request) {
|
||||||
HttpUriRequest req = RestClientUtils.post(
|
HttpUriRequest req = RestClientUtils.post(
|
||||||
cfg.getEndpoints().getAuth(),
|
cfg.getEndpoints().getIdentity().getSingle(), gson, "lookup",
|
||||||
gson,
|
|
||||||
"lookup",
|
|
||||||
new LookupSingleRequestJson(request.getType(), request.getThreePid()));
|
new LookupSingleRequestJson(request.getType(), request.getThreePid()));
|
||||||
|
|
||||||
try (CloseableHttpResponse res = client.execute(req)) {
|
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()))
|
.map(mapping -> new LookupSingleRequestJson(mapping.getMedium(), mapping.getValue()))
|
||||||
.collect(Collectors.toList());
|
.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)) {
|
try (CloseableHttpResponse res = client.execute(req)) {
|
||||||
mappings = new ArrayList<>();
|
mappings = new ArrayList<>();
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ public class MatrixConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
private void postConstruct() {
|
public void build() {
|
||||||
log.info("--- Matrix config ---");
|
log.info("--- Matrix config ---");
|
||||||
|
|
||||||
if (StringUtils.isBlank(domain)) {
|
if (StringUtils.isBlank(domain)) {
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ public class RestBackendConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
private void postConstruct() {
|
public void build() {
|
||||||
log.info("--- REST backend config ---");
|
log.info("--- REST backend config ---");
|
||||||
log.info("Enabled: {}", isEnabled());
|
log.info("Enabled: {}", isEnabled());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user