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

commands/dht: use new cmds lib #5671

Merged
merged 2 commits into from
Nov 2, 2018
Merged

Conversation

overbool
Copy link
Contributor

Refer: #5664

License: MIT
Signed-off-by: Overbool [email protected]

@overbool overbool requested a review from Kubuxu as a code owner October 27, 2018 02:58
@overbool overbool force-pushed the refactor/commands/dht branch from f3c98e2 to 514ecaf Compare October 28, 2018 04:43
Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode()
Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {
nd, err := cmdenv.GetNode(env)
Copy link
Member

Choose a reason for hiding this comment

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

Why the rename to nd?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@magik6k I just wanna write it in the same way in all core/commands/*.go

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, makes sense. (I thought that n was more common/conststently used, but checking now it's not and nd is used about as often, I have no preference, so this LGTM)

@overbool overbool force-pushed the refactor/commands/dht branch from 514ecaf to 138c196 Compare October 31, 2018 02:00
@Stebalien Stebalien mentioned this pull request Oct 31, 2018
73 tasks
License: MIT
Signed-off-by: Overbool <[email protected]>
License: MIT
Signed-off-by: Overbool <[email protected]>
@Stebalien Stebalien force-pushed the refactor/commands/dht branch from 138c196 to 4a2c3cb Compare November 2, 2018 18:16
@ghost ghost assigned Stebalien Nov 2, 2018
@ghost ghost added the status/in-progress In progress label Nov 2, 2018
@Stebalien Stebalien merged commit a98a715 into ipfs:master Nov 2, 2018
@ghost ghost removed the status/in-progress In progress label Nov 2, 2018
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.

3 participants