@@ -30,7 +30,7 @@ use rand_distr::{Beta, Binomial, Distribution};
3030use serde:: { Deserialize , Serialize } ;
3131use time:: { OffsetDateTime , PrimitiveDateTime } ;
3232// use crate::types::card_brand_routes as ETCBR;
33- use crate :: redis:: feature:: { self as M , is_feature_enabled} ;
33+ use crate :: redis:: feature:: { self as M , is_feature_enabled, RedisCompressionConfigCombined } ;
3434use crate :: types:: gateway_routing_input as ETGRI ;
3535// use crate::types::gateway_health as ETGH;
3636use crate :: types:: card as ETCT ;
@@ -3009,6 +3009,7 @@ pub async fn trigger_reset_gateway_score(
30093009 decider_flow,
30103010 txn_detail. clone ( ) ,
30113011 reset_gateway_input. clone ( ) ,
3012+ decider_flow. get ( ) . dpRedisCompressionConfig . clone ( ) ,
30123013 )
30133014 . await ;
30143015 reset_gateway_sr_list. push ( reset_gateway_input. clone ( ) ) ;
@@ -3071,6 +3072,7 @@ pub async fn reset_gateway_score(
30713072 decider_flow : & mut DeciderFlow < ' _ > ,
30723073 txn_detail : ETTD :: TxnDetail ,
30733074 reset_gateway_input : ResetGatewayInput ,
3075+ redis_compression_config : Option < RedisCompressionConfigCombined > ,
30743076) {
30753077 let current_timestamp = get_current_date_in_millis ( ) ;
30763078 match (
@@ -3081,6 +3083,14 @@ pub async fn reset_gateway_score(
30813083 ( Some ( key) , Some ( threshold) , Some ( max_count) ) => {
30823084 let penality_factor = Utils :: get_penality_factor_ ( decider_flow) . await ;
30833085 let score = get_merchant_elimination_gateway_score ( key. clone ( ) ) . await ;
3086+ logger:: debug!(
3087+ tag = "scoringFlow" ,
3088+ action = "scoringFlow" ,
3089+ "Current Gateway Score for {:?} : key {:?} before reset attempt: {:?}" ,
3090+ txn_detail. txnId,
3091+ key,
3092+ score
3093+ ) ;
30843094 let ( is_eligible_for_reset, reset_cached_gateway_score) = match score {
30853095 Some ( score) => {
30863096 let current_score = score. score ;
@@ -3141,6 +3151,7 @@ pub async fn reset_gateway_score(
31413151 key. clone ( ) ,
31423152 reset_cached_gateway_score. clone ( ) ,
31433153 safe_remaining_ttl,
3154+ redis_compression_config,
31443155 )
31453156 . await ;
31463157 match result {
0 commit comments