Skip to content

Commit

Permalink
status: fixed it a little more
Browse files Browse the repository at this point in the history
  • Loading branch information
delbonis committed Dec 19, 2024
1 parent 62b4e39 commit 14d6c29
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/status/src/status_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,8 @@ impl StatusChannel {
/// Waits until genesis and returns the client state.
pub async fn wait_until_genesis(&self) -> Result<ClientState, RecvError> {
let mut rx = self.receiver.cl.clone();
loop {
let chs = rx.wait_for(|chs| chs.has_genesis_occurred()).await?;
return Ok(chs.clone());
}
let chs = rx.wait_for(|chs| chs.has_genesis_occurred()).await?;
Ok(chs.clone())
}

// Sender methods
Expand Down

0 comments on commit 14d6c29

Please sign in to comment.