mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 06:21:02 +00:00
relay_loop().await from main relay function (#829)
This commit is contained in:
committed by
Bastian Köcher
parent
4cd6d128ea
commit
c95b1eb970
@@ -91,7 +91,7 @@ pub trait TargetClient<P: FinalitySyncPipeline>: RelayClient {
|
||||
}
|
||||
|
||||
/// Run finality proofs synchronization loop.
|
||||
pub fn run<P: FinalitySyncPipeline>(
|
||||
pub async fn run<P: FinalitySyncPipeline>(
|
||||
source_client: impl SourceClient<P>,
|
||||
target_client: impl TargetClient<P>,
|
||||
sync_params: FinalitySyncParams,
|
||||
@@ -132,7 +132,8 @@ pub fn run<P: FinalitySyncPipeline>(
|
||||
exit_signal.clone(),
|
||||
)
|
||||
},
|
||||
);
|
||||
)
|
||||
.await;
|
||||
}
|
||||
|
||||
/// Unjustified headers container. Ordered by header number.
|
||||
|
||||
Reference in New Issue
Block a user