-
Notifications
You must be signed in to change notification settings - Fork 297
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
chore: rename megabyte to mebibyte #3994
Conversation
📝 WalkthroughWalkthroughThe changes in this pull request introduce a series of benchmarking functions for testing message sending transactions within a blockchain application. These benchmarks evaluate various aspects of transaction processing, including checking, delivering, preparing, and processing proposals, with different transaction sizes. Additionally, the terminology for byte size is updated from Changes
Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
app/benchmarks/benchmark_msg_send_test.go (1)
320-321
: Consider further improvements for consistencyWhile the calculation now correctly uses
mebibyte
, there are a few more adjustments that could enhance consistency and clarity:
- Update the function name from
calculateBlockSizeInMb
tocalculateBlockSizeInMiB
to use the correct abbreviation for mebibytes.- Modify the comment above the function to mention "mebibytes" instead of "mb".
These changes would ensure full alignment with the new terminology throughout the code.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
- app/benchmarks/benchmark_msg_send_test.go (2 hunks)
🧰 Additional context used
🔇 Additional comments (1)
app/benchmarks/benchmark_msg_send_test.go (1)
310-311
: Correct renaming from megabyte to mebibyteThe constant has been appropriately renamed from
megabyte
tomebibyte
, which is more accurate for the binary measurement of 1,048,576 bytes (2^20). This change aligns with the PR objective and improves terminology precision in the codebase.
Handles the renaming feedback in #3904 (comment) (cherry picked from commit 0ad4d72)
Handles the renaming feedback in #3904 (comment)