From d5aceb801d2157f93b1eacadc5825c31a112d25f Mon Sep 17 00:00:00 2001 From: Joshua Lind Date: Wed, 20 Jan 2021 15:48:50 -0800 Subject: [PATCH] [State Sync] Rename "state_synchronizer.rs" to "bootstrapper.rs" --- diem-node/src/lib.rs | 2 +- state-sync/src/{state_synchronizer.rs => bootstrapper.rs} | 4 ++-- state-sync/src/lib.rs | 2 +- state-sync/tests/test_harness.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename state-sync/src/{state_synchronizer.rs => bootstrapper.rs} (96%) diff --git a/diem-node/src/lib.rs b/diem-node/src/lib.rs index 0278480e4136c..d4c2aaed82c9f 100644 --- a/diem-node/src/lib.rs +++ b/diem-node/src/lib.rs @@ -23,7 +23,7 @@ use executor::{db_bootstrapper::maybe_bootstrap, Executor}; use executor_types::ChunkExecutor; use futures::{channel::mpsc::channel, executor::block_on}; use network_builder::builder::NetworkBuilder; -use state_sync::state_synchronizer::StateSyncBootstrapper; +use state_sync::bootstrapper::StateSyncBootstrapper; use std::{ boxed::Box, convert::TryFrom, diff --git a/state-sync/src/state_synchronizer.rs b/state-sync/src/bootstrapper.rs similarity index 96% rename from state-sync/src/state_synchronizer.rs rename to state-sync/src/bootstrapper.rs index bb3faa13de461..d691da2608d09 100644 --- a/state-sync/src/state_synchronizer.rs +++ b/state-sync/src/bootstrapper.rs @@ -18,8 +18,8 @@ use storage_interface::DbReader; use subscription_service::ReconfigSubscription; use tokio::runtime::{Builder, Runtime}; -/// Creates and bootstraps new state sync runtimes and creates clients for -/// communicating with those state sync runtimes. +/// Creates and bootstraps new state syncs and creates clients for +/// communicating with those state syncs. pub struct StateSyncBootstrapper { _runtime: Runtime, coordinator_sender: mpsc::UnboundedSender, diff --git a/state-sync/src/lib.rs b/state-sync/src/lib.rs index a61c274dcd8af..e8114ec3659bf 100644 --- a/state-sync/src/lib.rs +++ b/state-sync/src/lib.rs @@ -7,6 +7,7 @@ //! Used for node restarts, network partitions, full node syncs #![recursion_limit = "1024"] +pub mod bootstrapper; pub mod chunk_request; pub mod chunk_response; pub mod client; @@ -16,7 +17,6 @@ pub mod executor_proxy; mod logging; pub mod network; mod request_manager; -pub mod state_synchronizer; #[cfg(any(feature = "fuzzing", test))] pub mod fuzzing; diff --git a/state-sync/tests/test_harness.rs b/state-sync/tests/test_harness.rs index 5ba124820c7b5..f82734c5b776d 100644 --- a/state-sync/tests/test_harness.rs +++ b/state-sync/tests/test_harness.rs @@ -58,11 +58,11 @@ use network_builder::builder::NetworkBuilder; use once_cell::sync::Lazy; use rand::{rngs::StdRng, SeedableRng}; use state_sync::{ + bootstrapper::StateSyncBootstrapper, client::StateSyncClient, coordinator::SynchronizationState, executor_proxy::ExecutorProxyTrait, network::{StateSynchronizerEvents, StateSynchronizerSender}, - state_synchronizer::StateSyncBootstrapper, }; use std::{ cell::{Ref, RefCell},