github-actions[bot] commented on code in PR #25701:
URL: https://github.com/apache/doris/pull/25701#discussion_r1368739865
##########
be/src/vec/sink/writer/vtablet_writer.cpp:
##########
@@ -610,7 +609,7 @@ void VNodeChannel::_cancel_with_msg(const std::string& msg)
{
LOG(WARNING) << "cancel node channel " << channel_info() << ", error
message: " << msg;
{
std::lock_guard<doris::SpinLock> l(_cancel_msg_lock);
- if (_cancel_msg == "") {
+ if (_cancel_msg.empty()) {
Review Comment:
warning: method '_cancel_with_msg' can be made static
[readability-convert-member-functions-to-static]
```suggestion
static void VNodeChannel::_cancel_with_msg(const std::string& msg) {
```
--
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]