Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Jul 10, 2024
1 parent 9ac49fd commit 8de79d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/meta/src/rpc/election/dummy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ impl ElectionClient for DummyElectionClient {
}

async fn run_once(&self, _ttl: i64, mut stop: Receiver<()>) -> MetaResult<()> {
tokio::select! {
_ = stop.changed() => {}
_ = futures::future::pending::<()>() => {}
}
// Only exit when the stop signal is received.
let _ = stop.changed().await;
Ok(())
}

Expand Down

0 comments on commit 8de79d9

Please sign in to comment.