From 81848a25b0cf252b47261c3c8b76f3a553c049ac Mon Sep 17 00:00:00 2001 From: Alon Lukatch Date: Sun, 22 Dec 2024 15:32:23 +0200 Subject: [PATCH] chore: fix CR comments --- crates/starknet_state_sync/src/runner/mod.rs | 2 +- crates/starknet_state_sync/src/runner/test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/starknet_state_sync/src/runner/mod.rs b/crates/starknet_state_sync/src/runner/mod.rs index d5e8f67149..7e1f9e7c1a 100644 --- a/crates/starknet_state_sync/src/runner/mod.rs +++ b/crates/starknet_state_sync/src/runner/mod.rs @@ -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(()); } } } diff --git a/crates/starknet_state_sync/src/runner/test.rs b/crates/starknet_state_sync/src/runner/test.rs index f1ba2e47d9..e7b701f232 100644 --- a/crates/starknet_state_sync/src/runner/test.rs +++ b/crates/starknet_state_sync/src/runner/test.rs @@ -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]