Keep them public to allow testing in these particular functions
This commit is contained in:
+2
-2
@@ -26,7 +26,7 @@ import com.vitorpamplona.quartz.events.AdvertisedRelayListEvent
|
|||||||
|
|
||||||
class RelayListRecommendationProcessor {
|
class RelayListRecommendationProcessor {
|
||||||
companion object {
|
companion object {
|
||||||
private fun transpose(
|
fun transpose(
|
||||||
userList: Map<HexKey, MutableSet<String>>,
|
userList: Map<HexKey, MutableSet<String>>,
|
||||||
ignore: Set<String> = setOf(),
|
ignore: Set<String> = setOf(),
|
||||||
): Map<String, MutableSet<HexKey>> {
|
): Map<String, MutableSet<HexKey>> {
|
||||||
@@ -76,7 +76,7 @@ class RelayListRecommendationProcessor {
|
|||||||
return validWriteRelayUrls
|
return validWriteRelayUrls
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun reliableRelaySetFor(
|
fun reliableRelaySetFor(
|
||||||
usersAndRelays: MutableMap<HexKey, MutableSet<String>>,
|
usersAndRelays: MutableMap<HexKey, MutableSet<String>>,
|
||||||
relayUrlsToIgnore: Set<String> = emptySet(),
|
relayUrlsToIgnore: Set<String> = emptySet(),
|
||||||
): Set<RelayRecommendation> {
|
): Set<RelayRecommendation> {
|
||||||
|
|||||||
Reference in New Issue
Block a user