-
Notifications
You must be signed in to change notification settings - Fork 637
fix(indexer): Ineffective or missing break statements in kv package. #3557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c69acd5
to
471ec5e
Compare
.changelog/unreleased/bug-fixes/3544-indexer-break-statement.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The breaks you've modified LGTM. The breaks you've introduced also LGTM, but I have less confidence on my review there.
I'd wait for @jmalicevic to take a quick look at those introduced break
statements.
Co-authored-by: Sergio Mena <sergio@informal.systems>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…3557) Closes #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 --------- Co-authored-by: Sergio Mena <sergio@informal.systems> (cherry picked from commit 79da036) # Conflicts: # state/indexer/block/kv/kv.go
…3557) Closes #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 --------- Co-authored- 8000 by: Sergio Mena <sergio@informal.systems> (cherry picked from commit 79da036) # Conflicts: # state/indexer/block/kv/kv.go
…3557) Closes #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 --------- Co-authored-by: Sergio Mena <sergio@informal.systems> (cherry picked from commit 79da036)
…(backport #3557) (#3562) Closes #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 #3557 done by [Mergify](https://mergify.com). Co-authored-by: Alessandro Sforzin <alessandro@informal.systems>
…(backport #3557) (#3564) Closes #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 #3557 done by [Mergify](https://mergify.com). --------- Co-authored-by: Alessandro <alessandro@informal.systems>
…(backport #3557) (#3563) Closes #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 #3557 done by [Mergify](https://mergify.com). --------- Co-authored-by: Alessandro <alessandro@informal.systems>
Closes #3544.
Changes
for
loop labels in the kv indexerbreak
statements now point to their enclosingfor
loop labels to exit upon reception on thectx.Done()
channel.PR checklist
- [ ] Tests written/updated.changelog
(we use unclog to manage our changelog)- [ ] Updated relevant documentation (docs/
orspec/
) and code comments