Allows the choice of limits on Count

This commit is contained in:
Vitor Pamplona 2025-01-15 13:16:44 -05:00
parent a739329ab8
commit 5ee754c71a
2 changed files with 3 additions and 4 deletions

View File

@ -38,10 +38,11 @@ class CountCmd(
fun toJson(
requestId: String,
filters: List<Filter>,
limit: Int = 19,
): String =
filters.joinToStringLimited(
separator = ",",
limit = 19,
limit = limit,
prefix = """["COUNT","$requestId",""",
postfix = "]",
) {

View File

@ -31,9 +31,7 @@ class ToRelayParser {
CloseCmd.LABEL -> CloseCmd.parse(msgArray)
CountCmd.LABEL -> CountCmd.parse(msgArray)
EventCmd.LABEL -> EventCmd.parse(msgArray)
com.vitorpamplona.quartz.nip01Core.relays.commands.toRelay.ReqCmd.LABEL ->
com.vitorpamplona.quartz.nip01Core.relays.commands.toRelay.ReqCmd
.parse(msgArray)
ReqCmd.LABEL -> ReqCmd.parse(msgArray)
else -> null
}
}