Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

feat: Prevent handling multiple vote requests simultaneously #7

Merged
merged 4 commits into from
Sep 2, 2022

Conversation

rapsealk
Copy link
Member

@rapsealk rapsealk commented Sep 2, 2022

In the previous version, there has been a race-condition problem when it receives multiple vote requests simultaneously. Therefore,
a lock named _vote_request_lock has been added to Raft to protect its state from unintended behavior.

@rapsealk rapsealk added bug Something isn't working feature New feature or request labels Sep 2, 2022
@rapsealk rapsealk self-assigned this Sep 2, 2022
@rapsealk rapsealk merged commit ef729b5 into develop Sep 2, 2022
@rapsealk rapsealk deleted the feature/lock-vote branch September 2, 2022 02:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant