Skip to content
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

added timeout flag for the cassandra server connection timeout #255

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SandeepDev1
Copy link

Just added the timeout flag for the cluster.ConnectTimeout
I needed for my server so thought it can be useful for others too.

@@ -26,6 +27,7 @@ var (
flagOutput = cmd.String("output", "models", "the name of the folder to output to")
flagUser = cmd.String("user", "", "user for password authentication")
flagPassword = cmd.String("password", "", "password for password authentication")
flagTimeout = cmd.Int("timeout", 5, "connection timeout for the connection to the database ( in seconds )")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think default should be in line with gocql default value, which is 11 (https://github.com/gocql/gocql/blob/master/cluster.go#L262)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants