forked from tulios/kafkajs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete the entry for the waiter when the timeout is reached
When the lock times out the promise rejects, and the calling code will do "something sensible". Something sensible could be to retry later -- but that actually requires the lock to be able to be acquired again. Right now this is not possible, because the failed `tryToAcquire` is still inside the waiting queue -- and will never release the lock.
- Loading branch information
Showing
2 changed files
with
26 additions
and
4 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