Skip to content

Conversation

@holisticode
Copy link

The DefaultDataDir() call is already assigned in the NodeDefaultConfig global variable on line 32 in defaults.go

@rus-alex rus-alex self-requested a review August 12, 2023 04:45
Copy link
Contributor

@rus-alex rus-alex left a 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.

@holisticode
Copy link
Author

@rus-alex refactored according to your suggestion

utils.WSPortFlag.Value = DefaultWSPort
}

// NodeDefaultConfig contains reasonable default settings.
Copy link
Contributor

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.

Copy link
Author

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

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.

2 participants