-
Notifications
You must be signed in to change notification settings - Fork 240
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
[compression] Follow ROS2 style conventions better and throw eagerly #245
Conversation
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
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 me green CI
@@ -30,10 +30,17 @@ namespace | |||
// - Increase the time taken to compress | |||
// - Decrease the size of the compressed data | |||
// Setting to zero uses Zstd's default value of 3. | |||
constexpr const int DEFAULT_ZSTD_COMPRESSION_LEVEL = 1; | |||
constexpr const int kDefaultZstdCompressionLevel = 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.
not that I really matters, but given that the style guide recommends g_
followed by underscore, I think we could do the same for k_
for constants.
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 interpreted the variables as being constants and not globals since its scope is restricted to the file due to being in an anonymous namespace.
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.
My understanding also is that global constants are kCamelCase
and global variables are g_snake_case
.
@ros2/aws-oncall - please run this CI job |
|
@zmichaels11 Suggest to merge this after #241 |
Signed-off-by: Zachary Michaels <zmichaels11@gmail.com>
Signed-off-by: Zachary Michaels <zmichaels11@gmail.com>
Signed-off-by: Zachary Michaels <zmichaels11@gmail.com>
b51bf4c
to
3cd5217
Compare
Changes
check_frame_content
tothrow_on_invalid_frame_content
to match what its actually doing.k
prefix followed by CamelCase.Signed-off-by: Zachary Michaels zmichaels11@gmail.com