github-actions[bot] commented on code in PR #26915:
URL: https://github.com/apache/doris/pull/26915#discussion_r1391483600
##########
be/src/vec/sink/writer/vtablet_writer.cpp:
##########
@@ -608,7 +609,7 @@ void VNodeChannel::try_send_pending_block(RuntimeState*
state) {
_send_block_callback->clear_in_flight();
return;
}
- if (compressed_bytes >= double(config::brpc_max_body_size) * 0.95f) {
+ if (compressed_bytes >= double(config::brpc_max_body_size) * 0.95F) {
Review Comment:
warning: 0.95F is a magic number; consider replacing it with a named
constant [readability-magic-numbers]
```cpp
if (compressed_bytes >= double(config::brpc_max_body_size) * 0.95F) {
^
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]