-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
filestore: add "--file-order" option to "filestore ls" and "verify" #3938
Conversation
Just tested it and it's uncomparably faster! Thanks! |
filestore/util.go
Outdated
return listAll(fs, false) | ||
func ListAll(fs *Filestore, fileOrder bool) (func() *ListRes, error) { | ||
if fileOrder { | ||
println("ListAll With Sort") |
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.
don't use println
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.
sorry, that was meant for debugging and I forgot to remove it
filestore/util.go
Outdated
return nil | ||
} | ||
v := entries[i] | ||
i += 1 |
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.
i++
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.
A couple comments, otherwise LGTM
3fd4cd5
to
d548e32
Compare
Fixed. |
@kevina also a couple codeclimate issues |
@whyrusleeping I know. It is being two picky. The check is "Indent Error Flow", but this is not an error flow. There is nothing is the style guide at https://github.com/golang/go/wiki/CodeReviewComments about this, the style guide is specially about error handling. |
Also golint had this disclaimer in the README:
|
@kevina you have redundant else statements. It makes the code cleaner to remove them |
License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>
d548e32
to
332a796
Compare
@whyrusleeping I don't agree, but its not worth an argument, fixed. |
d548e32
to
332a796
Compare
Closes #3922