refactor(ext_traits): simplify the signatures of some methods in Encode extension trait (#3687)

This commit is contained in:
Sanchith Hegde
2024-02-19 15:24:09 +05:30
committed by GitHub
parent 8038b48a54
commit 11fc9b3986
44 changed files with 392 additions and 416 deletions

View File

@ -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 {