-
Notifications
You must be signed in to change notification settings - Fork 22
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 configuration files and configuration classes #387
Conversation
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.
- No need to use the config items everywhere, use
config.getXXX()
instead. - Do not set the config items one by one.
BTW, it's better to add a brief about what you changed in this PR.
server/src/main/java/com/distkv/dst/server/DstServerConfig.java
Outdated
Show resolved
Hide resolved
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.
Looks good overall. I left some minor comments ~
server/src/main/java/com/distkv/dst/server/DstServerConfig.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/distkv/dst/server/DstServerConfig.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/distkv/dst/server/DstServerConfig.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/distkv/dst/server/DstServerConfig.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/distkv/dst/server/DstServerConfig.java
Outdated
Show resolved
Hide resolved
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.
Nice job.
Thanks for your contributions.
Generally speaking, every large project needs a configuration file for users to configure, so this PR solves the problem by typesafe