Skip to content

Commit

Permalink
chore: fix CR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AlonLStarkWare committed Dec 26, 2024
1 parent 375c4bc commit c7975a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/starknet_state_sync/src/runner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl ComponentStarter for StateSyncRunner {
}
result = &mut self.p2p_sync_client_future => return result.map_err(|_| ComponentError::InternalComponentError),
() = &mut self.p2p_sync_server_future => {
return Err(ComponentError::InternalComponentError);
return Ok(());
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/starknet_state_sync/src/runner/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ fn run_returns_when_sync_client_future_returns() {
}

#[test]
fn run_returns_error_when_sync_server_future_returns() {
fn run_returns_when_sync_server_future_returns() {
let network_future = pending().boxed();
let p2p_sync_client_future = pending().boxed();
let p2p_sync_server_future = ready(()).boxed();
let mut state_sync_runner =
StateSyncRunner { network_future, p2p_sync_client_future, p2p_sync_server_future };
state_sync_runner.start().now_or_never().unwrap().unwrap_err();
state_sync_runner.start().now_or_never().unwrap().unwrap();
}

#[test]
Expand Down

0 comments on commit c7975a5

Please sign in to comment.