parent
b881eafe47
commit
0bc79686b8
|
@ -21,14 +21,15 @@
|
||||||
|
|
||||||
use crate::components::tokio::RuntimeRun;
|
use crate::components::tokio::RuntimeRun;
|
||||||
use crate::config::ZebradConfig;
|
use crate::config::ZebradConfig;
|
||||||
use crate::{components::tokio::TokioComponent, prelude::*};
|
use crate::{
|
||||||
|
components::{tokio::TokioComponent, Syncer},
|
||||||
|
prelude::*,
|
||||||
|
};
|
||||||
|
|
||||||
use abscissa_core::{config, Command, FrameworkError, Options, Runnable};
|
use abscissa_core::{config, Command, FrameworkError, Options, Runnable};
|
||||||
use color_eyre::eyre::Report;
|
use color_eyre::eyre::Report;
|
||||||
use tower::{buffer::Buffer, service_fn};
|
use tower::{buffer::Buffer, service_fn};
|
||||||
|
|
||||||
mod sync;
|
|
||||||
|
|
||||||
/// `start` subcommand
|
/// `start` subcommand
|
||||||
#[derive(Command, Debug, Options)]
|
#[derive(Command, Debug, Options)]
|
||||||
pub struct StartCmd {
|
pub struct StartCmd {
|
||||||
|
@ -60,7 +61,7 @@ impl StartCmd {
|
||||||
);
|
);
|
||||||
let (peer_set, _address_book) = zebra_network::init(config.network.clone(), node).await;
|
let (peer_set, _address_book) = zebra_network::init(config.network.clone(), node).await;
|
||||||
|
|
||||||
let mut syncer = sync::Syncer::new(config.network.network, peer_set, state, verifier);
|
let mut syncer = Syncer::new(config.network.network, peer_set, state, verifier);
|
||||||
|
|
||||||
syncer.sync().await
|
syncer.sync().await
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
pub mod metrics;
|
pub mod metrics;
|
||||||
|
mod sync;
|
||||||
pub mod tokio;
|
pub mod tokio;
|
||||||
pub mod tracing;
|
pub mod tracing;
|
||||||
|
|
||||||
|
pub use sync::Syncer;
|
||||||
|
|
Loading…
Reference in New Issue