rename readers/routers according to their functions

This commit is contained in:
a10zn8
2022-12-28 13:10:42 +04:00
parent 2b5c29be17
commit 031ee74bbc
24 changed files with 59 additions and 56 deletions

View File

@@ -100,11 +100,11 @@ open class BitcoinMultistream(
val apis = getApiSource(matcher)
apis.request(1)
return Mono.from(apis)
.map(Upstream::getApi)
.map(Upstream::getIngressReader)
.switchIfEmpty(Mono.error(Exception("No API available for $chain")))
}
override fun getRoutedApi(localEnabled: Boolean): Mono<JsonRpcReader> {
override fun getLocalReader(localEnabled: Boolean): Mono<JsonRpcReader> {
return Mono.just(callRouter)
}