Skip to content

Commit

Permalink
[State Sync] Rename "state_synchronizer.rs" to "bootstrapper.rs"
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLind authored and bors-libra committed Jan 22, 2021
1 parent 9c950b8 commit d5aceb8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion diem-node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<CoordinatorMessage>,
Expand Down
2 changes: 1 addition & 1 deletion state-sync/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
2 changes: 1 addition & 1 deletion state-sync/tests/test_harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit d5aceb8

Please sign in to comment.