mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-16 16:28:50 +00:00
bugfix for when limit=0
This commit is contained in:
@ -324,6 +324,8 @@ struct DBQuery : NonCopyable {
|
|||||||
uint64_t startTime = hoytech::curr_time_us();
|
uint64_t startTime = hoytech::curr_time_us();
|
||||||
|
|
||||||
bool complete = scanner->scan(txn, [&](uint64_t levId, std::string_view eventPayload){
|
bool complete = scanner->scan(txn, [&](uint64_t levId, std::string_view eventPayload){
|
||||||
|
if (f.limit == 0) return true;
|
||||||
|
|
||||||
// If this event came in after our query began, don't send it. It will be sent after the EOSE.
|
// If this event came in after our query began, don't send it. It will be sent after the EOSE.
|
||||||
if (levId > sub.latestEventId) return false;
|
if (levId > sub.latestEventId) return false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user