mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	refactor(open_router): call elimination routing of open router if enabled instead of dynamo (#7961)
This commit is contained in:
		| @ -643,6 +643,17 @@ impl DynamicRoutingAlgorithmRef { | ||||
|         self.dynamic_routing_volume_split = volume | ||||
|     } | ||||
|  | ||||
|     pub fn is_success_rate_routing_enabled(&self) -> bool { | ||||
|         self.success_based_algorithm | ||||
|             .as_ref() | ||||
|             .map(|success_based_routing| { | ||||
|                 success_based_routing.enabled_feature | ||||
|                     == DynamicRoutingFeatures::DynamicConnectorSelection | ||||
|                     || success_based_routing.enabled_feature == DynamicRoutingFeatures::Metrics | ||||
|             }) | ||||
|             .unwrap_or_default() | ||||
|     } | ||||
|  | ||||
|     pub fn is_elimination_enabled(&self) -> bool { | ||||
|         self.elimination_routing_algorithm | ||||
|             .as_ref() | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Chethan Rao
					Chethan Rao