-
Notifications
You must be signed in to change notification settings - Fork 287
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
Remove redundant DefaultDataDir call #500
base: develop
Are you sure you want to change the base?
Remove redundant DefaultDataDir call #500
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.
Why don't you refactor this part totally along with it?
Existence of defaultNodeConfig()
and NodeDefaultConfig
at the same time is confusing. Let's replace them with single DefaultNodeConfig()
for example.
@rus-alex refactored according to your suggestion |
cmd/opera/launcher/defaults.go
Outdated
@@ -28,22 +29,27 @@ func overrideFlags() { | |||
} | |||
|
|||
// NodeDefaultConfig contains reasonable default settings. |
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.
Godoc agreement: the comment should begins with the name of the element it describes.
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.
Updated and also fixed tests
The
DefaultDataDir()
call is already assigned in theNodeDefaultConfig
global variable on line 32 indefaults.go