refactor: rename PING code to HEARTBEAT in node service and update related proto files

This commit is contained in:
Marvin Zhang
2025-09-12 14:17:49 +08:00
parent d39c265483
commit c0e230e5d8
6 changed files with 114 additions and 260 deletions

View File

@@ -276,7 +276,7 @@ func (svc *MasterService) pingNodeClient(n *models.Node) (ok bool) {
return false
}
err := stream.Send(&grpc.NodeServiceSubscribeResponse{
Code: grpc.NodeServiceSubscribeCode_PING,
Code: grpc.NodeServiceSubscribeCode_HEARTBEAT,
})
if err != nil {
svc.Errorf("failed to ping worker node client[%s]: %v", n.Key, err)

View File

@@ -273,7 +273,7 @@ func (svc *WorkerService) subscribe() {
}
switch msg.Code {
case grpc.NodeServiceSubscribeCode_PING:
case grpc.NodeServiceSubscribeCode_HEARTBEAT:
// do nothing
}
}