Skip to content

Commit

Permalink
[TH2-5234] Correct condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Sep 3, 2024
1 parent 5aa7ecb commit 6328df7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ abstract class SearchMessagesHandler<B, G, RM, PM>(
}

suspend fun getIds(request: SseMessageSearchRequest<RM, PM>, lookupLimitDays: Long): Map<String, List<StreamInfo>> {
require((request.startTimestamp != null || request.resumeFromIdsList.isEmpty()) && request.endTimestamp == null) {
require((request.startTimestamp != null || request.resumeFromIdsList.isNotEmpty()) && request.endTimestamp == null) {
"(startTimestamp must not be null or resumeFromIdsList must not be empty) and endTimestamp must be null in request: $request"
}
searchMessageRequests.inc()
Expand Down

0 comments on commit 6328df7

Please sign in to comment.