diff --git a/clients/vault/src/system.rs b/clients/vault/src/system.rs index d9cc7f1db..8bcc8e3aa 100644 --- a/clients/vault/src/system.rs +++ b/clients/vault/src/system.rs @@ -329,17 +329,17 @@ enum ServiceTask { } fn maybe_run(should_run: bool, task: F) -> ServiceTask -where - F: Future> + Send + 'static, - E: Into>, + where + F: Future> + Send + 'static, + E: Into>, { ServiceTask::Optional(should_run, Box::pin(task.map_err(|x| x.into()))) } fn run(task: F) -> ServiceTask -where - F: Future> + Send + 'static, - E: Into>, + where + F: Future> + Send + 'static, + E: Into>, { ServiceTask::Essential(Box::pin(task.map_err(|x| x.into()))) } @@ -488,7 +488,7 @@ impl VaultService { startup_height, account_id, ) - .handle_cancellation::(issue_event_rx)), + .handle_cancellation::(issue_event_rx)), ), ] } @@ -532,7 +532,7 @@ impl VaultService { startup_height, account_id, ) - .handle_cancellation::(replace_event_rx)), + .handle_cancellation::(replace_event_rx)), ), ] } @@ -752,9 +752,9 @@ impl VaultService { self.register_vault_if_not_present(collateral_currency, wrapped_currency, amount) }, )) - .await - .into_iter() - .collect::>()?; + .await + .into_iter() + .collect::>()?; // purposefully _after_ register_vault_if_not_present and _before_ other calls self.vault_id_manager.fetch_vault_ids().await?; diff --git a/clients/wallet/src/stellar_wallet.rs b/clients/wallet/src/stellar_wallet.rs index bdeb1a179..715dd63f1 100644 --- a/clients/wallet/src/stellar_wallet.rs +++ b/clients/wallet/src/stellar_wallet.rs @@ -70,7 +70,7 @@ impl StellarWallet { /// Returns a TransactionResponse after submitting transaction envelope to Stellar, /// Else an Error. - async fn submit_transaction( + pub async fn submit_transaction( &self, envelope: TransactionEnvelope, ) -> Result {