From bd3bb899460bdff5b3fcc054a7ef4248afcc8837 Mon Sep 17 00:00:00 2001 From: arya2 Date: Wed, 21 Sep 2022 18:57:02 -0400 Subject: [PATCH] uses zebra_state::spawn_init in copy-state command --- zebrad/src/commands/copy_state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebrad/src/commands/copy_state.rs b/zebrad/src/commands/copy_state.rs index 36e71d97588..ee87c68c46a 100644 --- a/zebrad/src/commands/copy_state.rs +++ b/zebrad/src/commands/copy_state.rs @@ -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"); @@ -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");