-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce health checks on connections to rust-cueball. (#17)
Add support for connection health checks to cueball. Update the Connection trait with methods that allow trait implementors to provide connection state information to cueball. Implement re-tries and a connection-level checks using these methods to maintain a healthy connection pool. Provide default implementation so as not to break existing implementations that have not yet provided health methods. Bump the minor version of cueball to reflect the trait change. Co-authored-by: Kelly McLaughlin <[email protected]>
- Loading branch information
1 parent
ddb827c
commit 8af6ccc
Showing
7 changed files
with
227 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "cueball" | ||
version = "0.2.2" | ||
version = "0.3.0" | ||
authors = [ | ||
"Kelly McLaughlin <[email protected]>", | ||
"Jon Anderson <[email protected]>", | ||
|
@@ -9,6 +9,7 @@ authors = [ | |
edition = "2018" | ||
|
||
[dependencies] | ||
backoff = "0.1.5" | ||
base64 = "0.10.1" | ||
chrono = "0.4.9" | ||
derive_more = "0.14.0" | ||
|
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
Oops, something went wrong.