remove legacy endpoint

This commit is contained in:
Carsten Otto
2021-11-25 19:49:31 +01:00
parent 7e2153159b
commit adb0ce0318
3 changed files with 0 additions and 42 deletions

View File

@@ -59,17 +59,6 @@ public class LegacyController {
.collect(Collectors.joining(NEWLINE));
}
@GetMapping("/peer-pubkeys")
public String getPeerPubkeys() {
mark("getPeerPubkeys");
return channelService.getOpenChannels().stream()
.map(LocalOpenChannel::getRemotePubkey)
.map(Pubkey::toString)
.sorted()
.distinct()
.collect(Collectors.joining(NEWLINE));
}
private void mark(String name) {
metrics.mark(MetricRegistry.name(getClass(), name));
}