Skip to content

Commit

Permalink
fix: fix heartbeat req field and meta client impl (risingwavelabs#3716)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
yezizp2012 and mergify[bot] authored Jul 7, 2022
1 parent f9362b1 commit 477a4be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion proto/meta.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ option optimize_for = SPEED;

message HeartbeatRequest {
uint32 node_id = 1;
common.WorkerType worker_type = 2;
}

message HeartbeatResponse {
Expand Down
5 changes: 1 addition & 4 deletions src/rpc_client/src/meta_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ impl MetaClient {

/// Send heartbeat signal to meta service.
pub async fn send_heartbeat(&self, node_id: u32) -> Result<()> {
let request = HeartbeatRequest {
node_id,
worker_type: WorkerType::ComputeNode as i32,
};
let request = HeartbeatRequest { node_id };
self.inner.heartbeat(request).await?;
Ok(())
}
Expand Down

0 comments on commit 477a4be

Please sign in to comment.