-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add connect-timeout for Cassandra #1647
Add connect-timeout for Cassandra #1647
Conversation
Signed-off-by: Sagar Anand <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1647 +/- ##
==========================================
+ Coverage 98.73% 98.73% +<.01%
==========================================
Files 193 193
Lines 9214 9219 +5
==========================================
+ Hits 9097 9102 +5
Misses 90 90
Partials 27 27
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
pkg/cassandra/config/config.go
Outdated
@@ -32,6 +32,7 @@ type Configuration struct { | |||
LocalDC string `yaml:"local_dc"` | |||
ConnectionsPerHost int `validate:"min=1" yaml:"connections_per_host"` | |||
Timeout time.Duration `validate:"min=500"` | |||
ConnectTimeout time.Duration `validate:"min=600"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this shouldn't have validate
tag, since it's a new optional param, but should have yaml:"connect_timeout"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point, this is actually optional. Pushing Changes
Signed-off-by: Sagar Anand <[email protected]>
Thank you for contributing! |
Signed-off-by: Sagar Anand [email protected]
Which problem is this PR solving?
Short description of the changes