diff --git a/crates/api_models/src/routing.rs b/crates/api_models/src/routing.rs index c929bb3ea5..e1802ab56f 100644 --- a/crates/api_models/src/routing.rs +++ b/crates/api_models/src/routing.rs @@ -889,12 +889,12 @@ impl Default for SuccessBasedRoutingConfig { Self { params: Some(vec![DynamicRoutingConfigParams::PaymentMethod]), config: Some(SuccessBasedRoutingConfigBody { - min_aggregates_size: Some(2), + min_aggregates_size: Some(5), default_success_rate: Some(100.0), - max_aggregates_size: Some(3), + max_aggregates_size: Some(8), current_block_threshold: Some(CurrentBlockThreshold { - duration_in_mins: Some(5), - max_total_count: Some(2), + duration_in_mins: None, + max_total_count: Some(5), }), specificity_level: SuccessRateSpecificityLevel::default(), }), diff --git a/crates/router/src/core/payments/routing.rs b/crates/router/src/core/payments/routing.rs index b485cd9d98..83d3abef44 100644 --- a/crates/router/src/core/payments/routing.rs +++ b/crates/router/src/core/payments/routing.rs @@ -1779,11 +1779,11 @@ pub async fn perform_decide_gateway_call_with_open_router( ); routable_connectors.sort_by(|connector_choice_a, connector_choice_b| { let connector_choice_a_score = gateway_priority_map - .get(&connector_choice_a.connector.to_string()) + .get(&connector_choice_a.to_string()) .copied() .unwrap_or(0.0); let connector_choice_b_score = gateway_priority_map - .get(&connector_choice_b.connector.to_string()) + .get(&connector_choice_b.to_string()) .copied() .unwrap_or(0.0); connector_choice_b_score