pub async fn backup_local_transactions_task<P>(
shutdown: GracefulShutdown,
pool: P,
config: LocalTransactionBackupConfig,
)where
P: TransactionPool + Clone,
Expand description
Task which manages saving local transactions to the persistent file in case of shutdown. Reloads the transactions from the file on the boot up and inserts them into the pool.