-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
clean up tsdb for golint #4477
clean up tsdb for golint #4477
Conversation
Thanks @linearb -- we are actually doing some significant refactor in this code right now, so will hold off on merging this for now. |
Sure thing. |
@linearb -- our major refactor of this code is complete. Can you rebase? It may be tricky, so you may like to re-do from start. |
Yes, I can do it. |
Hmm. Tests not passing consistently. |
Tests pass now. Not sure why they failed after rebasing yesterday as the only thing (Also, on some runs ran out of file descriptors locally for TestEngine_WriteCompaction_Concurrent Most of these changes are trivial. But I made some changes from make() to var (which should be checked), golint ./... | fgrep -v meta.pb.go |
This is great @linearb -- I would like to merge. However the files underneath Then we can revisit the |
ok - I'll have a look. |
Closing this out since a simple rebase is probably no longer feasible. |
An attempt to clean up tsdb for golint for issue #4098.
Not including meta.pg.go since that's generated.
Not sure about the following golint complaints, so left those unchanged:
$ golint tsdb/... | grep -v meta.pb.go
tsdb/functions.go:189:4: can probably use "var a []*rawQueryMapOutput" instead
tsdb/functions.go:229:4: can probably use "var val []float64" instead
tsdb/functions.go:235:4: can probably use "var a []float64" instead
tsdb/engine/tsm1/tsm1.go:85:2: don't use ALL_CAPS in Go names; use CamelCase
(Although did change some apparently unnecessary instances of make() into var.)