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

Fixes bad variable names & property docs; extract code to a function #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

odrais-amsicorp
Copy link

@odrais-amsicorp odrais-amsicorp commented Sep 9, 2024

The _breakAfter and _failAfter properties were both commented as being number of seconds. They are used to calculate the number of write lock tries before breaking the lock and failing the lock break, respectively. But when they're actually used, the generated values are marked as being in seconds instead of write lock tries. So this PR updates the comments appropriately.

Renames _breakAfter and _failAfter properties to _breakAfterLockTries and _failAfterLockBreakTries to clarify what these values are.

Also creates a function to return the number of write lock tries per second to make the code a bit easier to understand.

The `_breakAfter` and `_failAfter` were both commented as being number of seconds. Actually, they are the number of write lock attempts to wait before trying to break the lock and failing the lock-breaking, respectively. So this PR updates the comments appropriately.

Also creates a function to return the number of write lock tries per second.

Renames _breakAfter and _failAfter properties to _breakAfterLockTries and _failAfterLockBreakTries to clarify what these values are.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant