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

Complete lint for cmd/influx #4703

Merged
merged 1 commit into from
Nov 11, 2015

Conversation

pablolmiranda
Copy link

  • CHANGELOG.md updated
  • Rebased/mergable
  • Tests pass
  • Sign CLA (if not already signed)

Part of #4098.

@otoolep
Copy link
Contributor

otoolep commented Nov 9, 2015

Thanks @pablolmiranda -- you must sign the CLA before we can merge this. https://influxdb.com/community/cla.html

@@ -30,6 +30,7 @@ import (
"github.com/influxdb/influxdb/services/udp"
"github.com/influxdb/influxdb/tcp"
"github.com/influxdb/influxdb/tsdb"
// What is the reason to have a blank import here?
Copy link
Contributor

Choose a reason for hiding this comment

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

This is to initialize the engine packages.

Copy link
Contributor

Choose a reason for hiding this comment

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

So if lint requires this to be commented, please add the comment above.

@pablolmiranda
Copy link
Author

@otoolep CLA signed.

@otoolep
Copy link
Contributor

otoolep commented Nov 11, 2015

+1.

@corylanou

@corylanou
Copy link
Contributor

Looks good. Needs a rebase to resolve the conflicts and then we can merge. Thanks!

@pablolmiranda
Copy link
Author

@otoolep @corylanou can you double check this PR?

@otoolep
Copy link
Contributor

otoolep commented Nov 11, 2015

Looks good @pablolmiranda -- can you please squash your commits and I will then merge. A comment-only change like this should be a single commit.

Also please send me an e-mail with your address so we can send you a shirt.

@otoolep
Copy link
Contributor

otoolep commented Nov 11, 2015

Before you squash you should actually rebase your branch against our master.

git pull --rebase influxdb master

return fmt.Errorf("Failed to connect to %s\n", c.Client.Addr())
} else {
c.ServerVersion = v
Copy link
Contributor

Choose a reason for hiding this comment

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

why was this removed?

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch @corylanou

Copy link
Author

Choose a reason for hiding this comment

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

golint ask to move it out of the else block. But I removed by accident. Fixed now.

@corylanou
Copy link
Contributor

One question otherwise looks good.

corrects the initialize package comment for lint

brings c.ServerVersion back
corylanou added a commit that referenced this pull request Nov 11, 2015
@corylanou corylanou merged commit dfe2d95 into influxdata:master Nov 11, 2015
corylanou added a commit that referenced this pull request Nov 11, 2015
@pires pires mentioned this pull request Nov 11, 2015
4 tasks
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.

None yet

3 participants