mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
refactor(ext_traits): simplify the signatures of some methods in Encode extension trait (#3687)
This commit is contained in:
@ -160,9 +160,9 @@ impl<T: DatabaseStore> PaymentIntentInterface for KVRouterStore<T> {
|
||||
.apply_changeset(origin_diesel_intent.clone());
|
||||
// Check for database presence as well Maybe use a read replica here ?
|
||||
|
||||
let redis_value =
|
||||
Encode::<DieselPaymentIntent>::encode_to_string_of_json(&diesel_intent)
|
||||
.change_context(StorageError::SerializationFailed)?;
|
||||
let redis_value = diesel_intent
|
||||
.encode_to_string_of_json()
|
||||
.change_context(StorageError::SerializationFailed)?;
|
||||
|
||||
let redis_entry = kv::TypedSql {
|
||||
op: kv::DBOperation::Update {
|
||||
|
||||
Reference in New Issue
Block a user