mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-24 17:41:03 +01:00
refactor: rename PING code to HEARTBEAT in node service and update related proto files
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -273,7 +273,7 @@ func (svc *WorkerService) subscribe() {
|
||||
}
|
||||
|
||||
switch msg.Code {
|
||||
case grpc.NodeServiceSubscribeCode_PING:
|
||||
case grpc.NodeServiceSubscribeCode_HEARTBEAT:
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user