|
@@ -1540,7 +1540,7 @@ fn sql_row_to_transaction(row: Vec<Column>) -> Result<Transaction, Error> {
|
|
|
// KVStore implementations for wallet
|
|
// KVStore implementations for wallet
|
|
|
|
|
|
|
|
#[async_trait]
|
|
#[async_trait]
|
|
|
-impl<RM> database::KVStoreTransaction<'_, Error> for SQLWalletTransaction<RM>
|
|
|
|
|
|
|
+impl<RM> database::KVStoreTransaction<Error> for SQLWalletTransaction<RM>
|
|
|
where
|
|
where
|
|
|
RM: DatabasePool + 'static,
|
|
RM: DatabasePool + 'static,
|
|
|
{
|
|
{
|
|
@@ -1631,10 +1631,9 @@ impl<RM> database::KVStore for SQLWalletDatabase<RM>
|
|
|
where
|
|
where
|
|
|
RM: DatabasePool + 'static,
|
|
RM: DatabasePool + 'static,
|
|
|
{
|
|
{
|
|
|
- async fn begin_transaction<'a>(
|
|
|
|
|
- &'a self,
|
|
|
|
|
- ) -> Result<Box<dyn database::KVStoreTransaction<'a, Self::Err> + Send + Sync + 'a>, Error>
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ async fn begin_transaction(
|
|
|
|
|
+ &self,
|
|
|
|
|
+ ) -> Result<Box<dyn database::KVStoreTransaction<Self::Err> + Send + Sync>, Error> {
|
|
|
Ok(Box::new(SQLWalletTransaction {
|
|
Ok(Box::new(SQLWalletTransaction {
|
|
|
inner: ConnectionWithTransaction::new(
|
|
inner: ConnectionWithTransaction::new(
|
|
|
self.pool.get().map_err(|e| Error::Database(Box::new(e)))?,
|
|
self.pool.get().map_err(|e| Error::Database(Box::new(e)))?,
|