Fix loop continue/break (affects performance only)

This commit is contained in:
Mike Dilger 2024-03-05 10:00:08 +13:00
parent 37d97b5abc
commit e19174f124

View File

@ -300,7 +300,7 @@ impl Store {
// If we have gone beyond since, we can stop early
// (We have to check because `since` might change in this loop)
if event.created_at() < since {
continue 'per_event;
break 'per_event;
}
// check against the rest of the filter
@ -374,7 +374,7 @@ impl Store {
// If we have gone beyond since, we can stop early
// (We have to check because `since` might change in this loop)
if event.created_at() < since {
continue 'per_event;
break 'per_event;
}
// check against the rest of the filter
@ -442,7 +442,7 @@ impl Store {
// If we have gone beyond since, we can stop early
// (We have to check because `since` might change in this loop)
if event.created_at() < since {
continue 'per_event;
break 'per_event;
}
// check against the rest of the filter