Refactor(core): interpolate success_based_routing config params with their specific values (#6448)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Prajjwal Kumar
2024-11-08 17:29:44 +05:30
committed by GitHub
parent 21d3071f31
commit d9ce42fd0c
8 changed files with 188 additions and 46 deletions

View File

@ -5,7 +5,6 @@ use std::{fmt::Debug, sync::Arc};
#[cfg(feature = "dynamic_routing")]
use dynamic_routing::{DynamicRoutingClientConfig, RoutingStrategy};
use router_env::logger;
use serde;
/// Struct contains all the gRPC Clients
@ -38,8 +37,6 @@ impl GrpcClientSettings {
.await
.expect("Failed to establish a connection with the Dynamic Routing Server");
logger::info!("Connection established with gRPC Server");
Arc::new(GrpcClients {
#[cfg(feature = "dynamic_routing")]
dynamic_routing: dynamic_routing_connection,