Skip to content

Commit

Permalink
Fix error handling (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
salman01zp authored May 26, 2023
1 parent b89995a commit e29222c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ where
_ => unreachable!("unsupported"),
};

let _ = match target_resource_id.target_system() {
match target_resource_id.target_system() {
webb_proposals::TargetSystem::ContractAddress(_) => {
let proposal = proposal_handler::evm_anchor_update_proposal(
root,
Expand All @@ -144,7 +144,7 @@ where
&self.proposal_signing_backend,
metrics.clone(),
)
.await
.await?
}
webb_proposals::TargetSystem::Substrate(_) => {
let proposal =
Expand All @@ -159,7 +159,7 @@ where
&self.proposal_signing_backend,
metrics.clone(),
)
.await
.await?
}
};
}
Expand Down
6 changes: 3 additions & 3 deletions event-watchers/substrate/src/vanchor_deposit_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ where
};
// Proposal proposed metric
metrics.lock().await.anchor_update_proposals.inc();
let _ = match target_resource_id.target_system() {
match target_resource_id.target_system() {
webb_proposals::TargetSystem::ContractAddress(_) => {
let proposal =
proposal_handler::evm_anchor_update_proposal(
Expand All @@ -166,7 +166,7 @@ where
&self.proposal_signing_backend,
metrics_clone.clone(),
)
.await
.await?
}
webb_proposals::TargetSystem::Substrate(_) => {
let proposal =
Expand All @@ -181,7 +181,7 @@ where
&self.proposal_signing_backend,
metrics_clone.clone(),
)
.await
.await?
}
};
}
Expand Down

0 comments on commit e29222c

Please sign in to comment.