-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: clears commandTimeout timer as each respective command gets fulf…
…illed (#1336) * making commandTimeout clean successful timers and work in cluster mode * deleting timer attribution solves an issue with transactions; cluster command doesn't need any special behaviour after all * adding attribute annotation to keep typescript happy. * thought setTimeout returned a number, apparently not * this time I ran `npm run build` locally first * addressing feedback * Clear timeouts for commands in offline queue When client is not ready, Redis#sendCommand() will move commands to the offline queue, and once ready, all commands in the offline queue will be sent with Redis#sendCommand() again. So we should check whether the timer has been set. * Address feedbacks Co-authored-by: luin <[email protected]>
- Loading branch information
1 parent
9e140f0
commit d65f8b2
Showing
4 changed files
with
36 additions
and
7 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
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