Skip to content

Commit

Permalink
fix: trigger to send heartbeat immediately after fail
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Sep 22, 2023
1 parent 234ac37 commit c6f2dd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/datanode/src/heartbeat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ impl HeartbeatTask {
Ok(new_tx) => {
info!("Reconnected to metasrv");
tx = new_tx;
// Triggers to send heartbeat immediately.
sleep.as_mut().reset(Instant::now());
}
Err(e) => {
error!(e;"Failed to reconnect to metasrv!");
Expand Down

0 comments on commit c6f2dd7

Please sign in to comment.