Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
akostylev0 committed Oct 27, 2023
1 parent cbc7b64 commit dcc4f7d
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tonlibjson-client/src/ton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,6 @@ impl TonClient {
pub async fn ready(&mut self) -> anyhow::Result<()> {
let _ = self.get_masterchain_info().await?;

tracing::info!("ready loop");
loop {
let Ok(_) = self.last_block_receiver.recv().await else {
tracing::warn!("last_block_receiver closed");
continue;
};

tracing::info!("last_block waited");
break;
}

loop {
let Ok(_) = self.first_block_receiver.recv().await else {
tracing::warn!("first_block_receiver closed");
continue;
};

tracing::info!("first_block waited");
break;
}

tracing::info!("ready");
return Ok(())
}
Expand Down

0 comments on commit dcc4f7d

Please sign in to comment.