mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
chore: run formatter
This commit is contained in:
@ -184,12 +184,14 @@ where
|
||||
let previous_gateway = payment_data.and_then(extract_gateway_system_from_payment_intent);
|
||||
let shadow_rollout_key = format!("{}_shadow", rollout_key);
|
||||
|
||||
let shadow_rollout_availability =
|
||||
if should_execute_based_on_rollout(state, &shadow_rollout_key).await?.should_execute {
|
||||
ShadowRolloutAvailability::IsAvailable
|
||||
} else {
|
||||
ShadowRolloutAvailability::NotAvailable
|
||||
};
|
||||
let shadow_rollout_availability = if should_execute_based_on_rollout(state, &shadow_rollout_key)
|
||||
.await?
|
||||
.should_execute
|
||||
{
|
||||
ShadowRolloutAvailability::IsAvailable
|
||||
} else {
|
||||
ShadowRolloutAvailability::NotAvailable
|
||||
};
|
||||
|
||||
// Single decision point using pattern matching
|
||||
let (gateway_system, execution_path) = if ucs_availability == UcsAvailability::Disabled {
|
||||
@ -229,7 +231,9 @@ where
|
||||
create_updated_session_state_with_proxy(state.clone(), &proxy_override)
|
||||
}
|
||||
None => {
|
||||
router_env::logger::debug!("No proxy override available for Shadow UCS, using original state");
|
||||
router_env::logger::debug!(
|
||||
"No proxy override available for Shadow UCS, using original state"
|
||||
);
|
||||
state.clone()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user