-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
266e6a9
to
4ea1281
Compare
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.
LGTM
"golint", | ||
"gosimple", | ||
"unused", | ||
"maligned" |
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.
Is it worth adding go vet and go fmt as well?
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.
opened #27 to track
index/segment/mem/iterator.go
Outdated
|
||
err error | ||
closed bool | ||
maxID postings.ID |
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.
Is this because of structcheck? If so, is it worth preferring the old layout since it had the benefit of distinguishing immutable versus mutable fields.
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.
it's because of maligned
: this layout is 80 bytes, the older one was 88.
I'll put a comment to indicate why we order this way and the mutability of fields.
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.
done
No description provided.