mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 07:37:12 +01:00
Fixes array too big because strfry blocks more than 20 filters
This commit is contained in:
@@ -393,17 +393,16 @@ class Relay(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (relayFilters.isNotEmpty()) {
|
if (relayFilters.isNotEmpty()) {
|
||||||
val request =
|
writeToSocket(
|
||||||
relayFilters.joinToStringLimited(
|
relayFilters.joinToStringLimited(
|
||||||
separator = ",",
|
separator = ",",
|
||||||
limit = 20,
|
limit = 19,
|
||||||
prefix = """["REQ","$requestId",""",
|
prefix = """["REQ","$requestId",""",
|
||||||
postfix = "]",
|
postfix = "]",
|
||||||
) {
|
) {
|
||||||
it.filter.toJson(url)
|
it.filter.toJson(url)
|
||||||
}
|
},
|
||||||
|
)
|
||||||
writeToSocket(request)
|
|
||||||
|
|
||||||
afterEOSEPerSubscription[requestId] = false
|
afterEOSEPerSubscription[requestId] = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user