-
Notifications
You must be signed in to change notification settings - Fork 385
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
Rename OP_*
constants to OpCode*
constants
#620
Conversation
Codecov Report
@@ Coverage Diff @@
## main #620 +/- ##
=======================================
Coverage 63.28% 63.28%
=======================================
Files 122 122
Lines 7157 7157
=======================================
Hits 4529 4529
Misses 2081 2081
Partials 547 547
Flags with carried forward coverage won't be shown. Click here to find out more. |
internal/wire/msg_header.go
Outdated
OP_KILL_CURSORS = OpCode(2007) // OP_KILL_CURSORS | ||
OP_COMPRESSED = OpCode(2012) // OP_COMPRESSED | ||
OP_MSG = OpCode(2013) // OP_MSG | ||
OpCodeReply = OpCode(1) // OpCodeReply |
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.
We should not change string representations – they follow protocol spec
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.
changed
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
Co-authored-by: Elena Grahovac <elena@grahovac.me>
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 see that codecov complains, but its complaints are related to the previous changes, not to the current ones. So, these complaints are irrelevant to the current purpose of the PR.
LGTM.
codecov/patch check is not required for that reason |
Co-authored-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
internal/wire/msg_header.go
Outdated
OP_KILL_CURSORS = OpCode(2007) // OP_KILL_CURSORS | ||
OP_COMPRESSED = OpCode(2012) // OP_COMPRESSED | ||
OP_MSG = OpCode(2013) // OP_MSG | ||
// OpCodeReply is deprecated. |
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.
We use it, so it should have a better description
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.
added.
internal/wire/msg_header.go
Outdated
// OpCodeGetByOID is deprecated. | ||
OpCodeGetByOID = OpCode(2003) // OP_GET_BY_OID | ||
|
||
// OpCodeQuery is deprecated. |
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.
We use it, so it should have a better description
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.
added.
added some comments, however, I acknowledge that it may differ how I understand the purpose from understanding of others. |
No description provided.