forked from cometbft/cometbft
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(consensus): Fix some peer messages taking write locks on the cs …
…mtx (cometbft#3159) Some clear, read-only spots in receive routine took Write locks instead of read locks. Seems like a bug. This PR fixes it. --- #### PR checklist - [x] Tests written/updated - N/A imo? - [x] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [x] Updated relevant documentation (`docs/` or `spec/`) and code comments - [x] Title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
- Loading branch information
1 parent
20e26bd
commit a0a6a63
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
.changelog/unreleased/improvements/3159-fix-taking-wlocks-instead-of-rlocks.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,2 @@ | ||
- [`consensus`] Fix some reactor messages taking write locks instead of read locks. | ||
([\#3159](https://github.com/cometbft/cometbft/issues/3159) |
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