Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
stedfn committed Jan 8, 2025
1 parent b66e105 commit 560efdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions integration-tests/src/test_loop/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ use near_store::{Store, StoreConfig, TrieConfig};
use near_vm_runner::logic::ProtocolVersion;
use near_vm_runner::{ContractRuntimeCache, FilesystemContractRuntimeCache};
use nearcore::state_sync::StateSyncDumper;
use tokio::runtime::Runtime;

use super::env::{ClientToShardsManagerSender, TestData, TestLoopChunksStorage, TestLoopEnv};
use super::utils::network::{chunk_endorsement_dropper, chunk_endorsement_dropper_by_hash};
Expand Down Expand Up @@ -722,7 +721,7 @@ impl TestLoopBuilder {

let networking_rt =
Arc::new(tokio::runtime::Builder::new_current_thread().build().unwrap());
let networking_spawner = Arc::new(TokioRuntimeFutureSpawner(networking_rt.clone()));
let networking_spawner = Arc::new(TokioRuntimeFutureSpawner(networking_rt));
let partial_witness_actor = PartialWitnessActor::new(
networking_spawner,
self.test_loop.clock(),
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/src/tests/network/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ fn setup_network_node(
client_config.chunk_request_retry_period,
);
let networking_rt = Arc::new(tokio::runtime::Builder::new_current_thread().build().unwrap());
let networking_spawner = Arc::new(TokioRuntimeFutureSpawner(networking_rt.clone()));
let networking_spawner = Arc::new(TokioRuntimeFutureSpawner(networking_rt));
let (partial_witness_actor, _) = spawn_actix_actor(PartialWitnessActor::new(
networking_spawner,
Clock::real(),
Expand Down

0 comments on commit 560efdc

Please sign in to comment.