mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
refactor(conditional_configs): refactor conditional_configs to use Moka Cache instead of Static Cache (#4814)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -558,9 +558,9 @@ pub async fn get_merchant_cgraph<'a>(
|
||||
|
||||
#[cfg(not(feature = "business_profile_routing"))]
|
||||
let key = match transaction_type {
|
||||
api_enums::TransactionType::Payment => format!("kgraph_{}", merchant_id),
|
||||
api_enums::TransactionType::Payment => format!("cgraph_{}", merchant_id),
|
||||
#[cfg(feature = "payouts")]
|
||||
api_enums::TransactionType::Payout => format!("kgraph_po_{}", merchant_id),
|
||||
api_enums::TransactionType::Payout => format!("cgraph_po_{}", merchant_id),
|
||||
};
|
||||
|
||||
let cached_cgraph = CGRAPH_CACHE
|
||||
|
||||
Reference in New Issue
Block a user