Skip to content

Commit

Permalink
uses zebra_state::spawn_init in copy-state command
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Sep 21, 2022
1 parent ded6a8b commit bd3bb89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zebrad/src/commands/copy_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl CopyStateCmd {
_source_read_only_state_service,
_source_latest_chain_tip,
_source_chain_tip_change,
) = old_zs::init(source_config.clone(), network);
) = old_zs::spawn_init(source_config.clone(), network).await?;

let elapsed = source_start_time.elapsed();
info!(?elapsed, "finished initializing source state service");
Expand All @@ -136,7 +136,7 @@ impl CopyStateCmd {
_target_read_only_state_service,
_target_latest_chain_tip,
_target_chain_tip_change,
) = new_zs::init(target_config.clone(), network);
) = new_zs::spawn_init(target_config.clone(), network).await?;

let elapsed = target_start_time.elapsed();
info!(?elapsed, "finished initializing target state service");
Expand Down

0 comments on commit bd3bb89

Please sign in to comment.