Skip to content

Commit

Permalink
restart relay loop when proof genration fails (paritytech#1585)
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik authored and serban300 committed Apr 9, 2024
1 parent a425c16 commit 073ed4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridges/relays/messages/src/message_race_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ pub async fn run<P: MessageRace, SC: SourceClient<P>, TC: TargetClient<P>>(
&mut source_go_offline_future,
async_std::task::sleep,
|| format!("Error generating proof at {}", P::source_name()),
).fail_if_connection_error(FailedClient::Source)?;
).fail_if_error(FailedClient::Source).map(|_| true)?;
},
proof_submit_result = target_submit_proof => {
target_client_is_online = process_future_result(
Expand Down

0 comments on commit 073ed4b

Please sign in to comment.