mirror of
https://github.com/mikedilger/chorus.git
synced 2026-03-04 06:36:27 +00:00
Fix loop continue/break (affects performance only)
This commit is contained in:
parent
37d97b5abc
commit
e19174f124
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user