Skip to content

Commit

Permalink
Allows the choice of limits on Count
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Jan 15, 2025
1 parent a739329 commit 5ee754c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "]",
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 5ee754c

Please sign in to comment.