!19619 fixed heartbeat timeout

Merge pull request !19619 from anancds/timeout
This commit is contained in:
i-robot 2021-07-08 01:35:40 +00:00 committed by Gitee
commit 835161dc18
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ bool AbstractNode::Heartbeat(const std::shared_ptr<TcpClient> &client) {
heartbeat_message.set_node_id(node_info_.node_id_);
if (!SendMessageSync(client, meta, Protos::PROTOBUF, heartbeat_message.SerializeAsString().data(),
heartbeat_message.ByteSizeLong())) {
heartbeat_message.ByteSizeLong(), kCommTimeoutInSeconds)) {
MS_LOG(WARNING) << "The node id:" << node_info_.node_id_ << " Send heartbeat timeout!";
return false;
}