Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Deprecate impl KakfaProducer functions and use MessageInterface instead #4495

Open
lsampras opened this issue Apr 29, 2024 · 0 comments

Comments

@lsampras
Copy link
Member

lsampras commented Apr 29, 2024

Remove the following functions from KafkaProducer to rely on MessageInterface instead.

pub async fn log_payment_attempt(
}

pub async fn log_payment_attempt_delete(
}

pub async fn log_payment_intent(
}

pub async fn log_payment_intent_delete(
}

pub async fn log_refund(&self, refund: &Refund, old_refund: Option<Refund>) -> MQResult<()> {
}

pub async fn log_refund_delete(&self, delete_old_refund: &Refund) -> MQResult<()> {
}

pub async fn log_dispute(
}

#[cfg(feature = "payouts")]
pub async fn log_payout(
}

#[cfg(feature = "payouts")]
pub async fn log_payout_delete(&self, delete_old_payout: &KafkaPayout<'_>) -> MQResult<()> {
}

https://github.com/juspay/hyperswitch/blob/main/crates/router/src/services/kafka.rs#L265-L386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant