10000 fix(indexer): Ineffective or missing break statements in kv package. (backport #3557) by mergify[bot] · Pull Request #3563 · cometbft/cometbft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(indexer): Ineffective or missing break statements in kv package. (backport #3557) #3563

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

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

mergify[bot]
Copy link
Contributor
@mergify mergify bot commented Jul 26, 2024

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

  • Changelog entry added in .changelog (we use unclog to manage our changelog)
    - [ ] Updated relevant documentation (docs/ or spec/) and code comments
  • Title follows the Conventional Commits spec

This is an automatic backport of pull request #3557 done by [Mergify](https://mergify.com).

…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
@mergify mergify bot requested a review from a team as a code owner July 26, 2024 07:52
@mergify mergify bot added the conflicts label Jul 26, 2024

This comment was marked as resolved.

@alesforz alesforz self-assigned this Jul 26, 2024
@alesforz alesforz added bug Something isn't working indexer labels Jul 26, 2024
@alesforz alesforz requested a review from melekes July 26, 2024 11:37
@alesforz alesforz merged commit 48cdbc9 into v0.38.x Jul 26, 2024
21 checks passed
@alesforz alesforz deleted the mergify/bp/v0.38.x/pr-3557 branch July 26, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working indexer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0