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 22, 2024
1 parent 375c4bc commit 81848a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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
2 changes: 1 addition & 1 deletion crates/starknet_state_sync/src/runner/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn run_returns_error_when_sync_server_future_returns() {
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 81848a2

Please sign in to comment.