Creates the relay on sending new requests instead of waiting for updatePool method.

This commit is contained in:
Vitor Pamplona
2025-10-02 16:40:45 -04:00
parent a56d9631ed
commit 612dd175b3
@@ -125,7 +125,7 @@ class RelayPool(
subId: String, subId: String,
filters: List<Filter>, filters: List<Filter>,
) { ) {
relays.get(relay)?.sendRequest(subId, filters) getOrCreateRelay(relay).sendRequest(subId, filters)
} }
fun sendRequest( fun sendRequest(
@@ -145,7 +145,7 @@ class RelayPool(
subId: String, subId: String,
filters: List<Filter>, filters: List<Filter>,
) { ) {
relays.get(relay)?.sendCount(subId, filters) getOrCreateRelay(relay).sendCount(subId, filters)
} }
fun sendCount( fun sendCount(