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

Allow customizing the default consistency level #69

Open
DanielSmedegaardBuus opened this issue Mar 18, 2014 · 2 comments
Open

Allow customizing the default consistency level #69

DanielSmedegaardBuus opened this issue Mar 18, 2014 · 2 comments

Comments

@DanielSmedegaardBuus
Copy link
Contributor

Would be nice to be able to set the default consistency level when you create a new client, in case you'd like something other than QUORUM :)

@jorgebay
Copy link
Owner

It can be done now, the way to do it is a little rough...

types.consistencies.getDefault = function () { 
  return types.consistencies.one;
};

It would be nice to set the default consistency at client instance level, what do you think?

@DanielSmedegaardBuus
Copy link
Contributor Author

Oh yeah :D

Only thing about that is you have to assume the code doesn't change or you'll break it. But it definitely does the job :)

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

No branches or pull requests

2 participants