forked from cometbft/cometbft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(indexer): Ineffective or missing break statements in kv package. …
…(backport cometbft#3557) (cometbft#3564) Closes cometbft#3544. ### Changes - Adds missing `for` loop labels in the kv indexer - Previously ineffective `break` statements now point to their enclosing `for` loop labels to exit upon reception on the `ctx.Done()` channel. --- #### PR checklist ~- [ ] Tests written/updated~ - [x] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) ~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments~ - [x] Title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec <hr>This is an automatic backport of pull request cometbft#3557 done by [Mergify](https://mergify.com). --------- Co-authored-by: Alessandro <[email protected]>
- Loading branch information
1 parent
8f36ed9
commit 50ddaa8
Showing
2 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
.changelog/unreleased/bug-fixes/3544-indexer-break-statement.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- `[indexer]` Fixed ineffective select break statements; they now | ||
point to their enclosing for loop label to exit | ||
([\#3544](https://github.com/cometbft/cometbft/issues/3544)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters