Skip to content

Commit

Permalink
Merge pull request fedimint#6503 from elsirion/2024-12-fix-oplog
Browse files Browse the repository at this point in the history
feat: fix missing loop break label
  • Loading branch information
dpc authored Dec 4, 2024
2 parents bab48e2 + 89e3988 commit 0be2786
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fedimint-client/src/oplog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ impl OperationLog {
// not introduce a find_by_range_rev function we have to jump through some
// hoops, see also the comments in rev_epoch_ranges.
// TODO: Implement using find_by_range_rev if ever introduced
for key_range_rev in rev_epoch_ranges(start_after_key, oldest_entry_key, EPOCH_DURATION) {
'outer: for key_range_rev in
rev_epoch_ranges(start_after_key, oldest_entry_key, EPOCH_DURATION)
{
let epoch_operation_log_keys_rev = dbtx
.find_by_range(key_range_rev)
.await
Expand All @@ -132,7 +134,7 @@ impl OperationLog {
for operation_log_key in epoch_operation_log_keys_rev.into_iter().rev() {
operation_log_keys.push(operation_log_key);
if operation_log_keys.len() >= limit {
break;
break 'outer;
}
}
}
Expand Down

0 comments on commit 0be2786

Please sign in to comment.