feat(routing): Enable volume split for dynamic routing (#6662)

Co-authored-by: prajjwalkumar17 <write2prajjwal@gmail.com>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: prajjwalkumar17 <prajjwal.kumar@juspay.in>
This commit is contained in:
Sarthak Soni
2024-12-05 14:38:23 +05:30
committed by GitHub
parent 62521f367b
commit 03b936a117
12 changed files with 302 additions and 75 deletions

View File

@ -969,6 +969,8 @@ pub async fn disable_dynamic_routing_algorithm(
}),
elimination_routing_algorithm: dynamic_routing_algo_ref
.elimination_routing_algorithm,
dynamic_routing_volume_split: dynamic_routing_algo_ref
.dynamic_routing_volume_split,
},
cache_entries_to_redact,
)
@ -999,6 +1001,8 @@ pub async fn disable_dynamic_routing_algorithm(
algorithm_id,
routing_types::DynamicRoutingAlgorithmRef {
success_based_algorithm: dynamic_routing_algo_ref.success_based_algorithm,
dynamic_routing_volume_split: dynamic_routing_algo_ref
.dynamic_routing_volume_split,
elimination_routing_algorithm: Some(
routing_types::EliminationRoutingAlgorithm {
algorithm_id_with_timestamp: