mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
refactor(core): remove connector response table and use payment_attempt instead (#2644)
This commit is contained in:
committed by
GitHub
parent
e67e808d70
commit
966369b6f2
@ -206,7 +206,6 @@ async fn drainer(
|
||||
let payment_attempt = "payment_attempt";
|
||||
let refund = "refund";
|
||||
let reverse_lookup = "reverse_lookup";
|
||||
let connector_response = "connector_response";
|
||||
let address = "address";
|
||||
match db_op {
|
||||
// TODO: Handle errors
|
||||
@ -230,13 +229,6 @@ async fn drainer(
|
||||
kv::Insertable::Refund(a) => {
|
||||
macro_util::handle_resp!(a.insert(&conn).await, insert_op, refund)
|
||||
}
|
||||
kv::Insertable::ConnectorResponse(a) => {
|
||||
macro_util::handle_resp!(
|
||||
a.insert(&conn).await,
|
||||
insert_op,
|
||||
connector_response
|
||||
)
|
||||
}
|
||||
kv::Insertable::Address(addr) => {
|
||||
macro_util::handle_resp!(addr.insert(&conn).await, insert_op, address)
|
||||
}
|
||||
@ -283,11 +275,6 @@ async fn drainer(
|
||||
refund
|
||||
)
|
||||
}
|
||||
kv::Updateable::ConnectorResponseUpdate(a) => macro_util::handle_resp!(
|
||||
a.orig.update(&conn, a.update_data).await,
|
||||
update_op,
|
||||
connector_response
|
||||
),
|
||||
kv::Updateable::AddressUpdate(a) => macro_util::handle_resp!(
|
||||
a.orig.update(&conn, a.update_data).await,
|
||||
update_op,
|
||||
|
||||
Reference in New Issue
Block a user