-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shovel/jrpc2: fix concurrency problems unearthed by -race
- Moved the mutex out of the Block.Tx method and instead rely on the callers to lock the block prior to mutation - Removed the call to validate in Get and instead have each rpc related method implement its own validation - Pruning maxread data requires locking the segemnt & cache
- Loading branch information
1 parent
2969ab4
commit d08c9fc
Showing
3 changed files
with
33 additions
and
25 deletions.
There are no files selected for viewing
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
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
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