Skip to content
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

Refactor and document correctness for std::sync::Mutex in ErrorSlot #2032

Merged
merged 1 commit into from
Apr 21, 2021

Conversation

teor2345
Copy link
Contributor

Motivation

The peer error slot uses a threaded mutex. So when we're waiting for the lock in async code, we need to be careful to avoid blocking all the tasks on that thread for too long.

Solution

  • Refactor to make correct usage easier
  • Document correctness

The code in this pull request has:

  • Documentation Comments
  • Integration Tests

Review

@oxarbitrage can review, but I want to test it locally first.

Related Issues

Implements part of #1995

@teor2345 teor2345 added A-rust Area: Updates to Rust code C-cleanup Category: This is a cleanup P-Low labels Apr 19, 2021
@teor2345 teor2345 added this to the 2021 Sprint 7 milestone Apr 19, 2021
@teor2345 teor2345 requested a review from oxarbitrage April 19, 2021 06:16
@teor2345 teor2345 self-assigned this Apr 19, 2021
@mpguerra mpguerra removed this from the 2021 Sprint 7 milestone Apr 19, 2021
@teor2345 teor2345 mentioned this pull request Apr 19, 2021
7 tasks
@teor2345 teor2345 marked this pull request as ready for review April 19, 2021 22:25
@dconnolly dconnolly added this to the 2021 Sprint 8 milestone Apr 21, 2021
@dconnolly dconnolly merged commit 905b90d into ZcashFoundation:main Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rust Area: Updates to Rust code C-cleanup Category: This is a cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants