forked from informatikr/hedis
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changing NodeConnection to Pool of NodeConnection and taking Cluster …
…Connection out of the Pool
- Loading branch information
1 parent
22d8146
commit 039a83d
Showing
2 changed files
with
63 additions
and
50 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
race on threadDelay needs to be invoked within withResource call. The idea is withResource call should itself destroy the connection in case of an exception (which will be raised when race function throws the exception).