Skip to content

Commit

Permalink
refactor(payments_start): remove redundant call to fetch payment meth…
Browse files Browse the repository at this point in the history
…od data (#1574)
  • Loading branch information
shreyash-Pandey-Katni committed Jul 3, 2023
1 parent 2c10e0b commit 6dd61b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/router/src/core/payments/operations/payment_start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,14 @@ where
#[instrument(skip_all)]
async fn make_pm_data<'a>(
&'a self,
state: &'a AppState,
payment_data: &mut PaymentData<F>,
_state: &'a AppState,
_payment_data: &mut PaymentData<F>,
_storage_scheme: storage_enums::MerchantStorageScheme,
) -> RouterResult<(
BoxedOperation<'a, F, api::PaymentsStartRequest>,
Option<api::PaymentMethodData>,
)> {
helpers::make_pm_data(Box::new(self), state, payment_data).await
Ok((Box::new(self), None))
}

async fn get_connector<'a>(
Expand Down

0 comments on commit 6dd61b6

Please sign in to comment.