rustfmt tests and fix typos

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch
2025-07-29 14:45:41 +03:00
parent ce26787a11
commit 8f20b7ef5c
7 changed files with 30 additions and 33 deletions

View File

@@ -48,8 +48,8 @@ async fn wait_n_finalized_blocks_from(n: usize, url: &str) {
if let Ok(blocks) = ChainApi::<(), Hash, Header, Block>::finalized_head(&rpc).await {
build_blocks.insert(block);
if (build_blocks.len() > n {
break
if build_blocks.len() > n {
break;
}
};
interval.tick().await;
@@ -80,7 +80,10 @@ pub fn find_ws_url_from_output(read: impl Read + Send) -> (String, String) {
Some(format!("ws://{}", sock_addr))
})
.unwrap_or_else(|| {
panic!("Could not find WebSocket address in process output:\n{}", &data)
panic!(
"Could not find WebSocket address in process output:\n{}",
&data
)
});
(ws_url, data)