Refactor App struct

This commit is contained in:
Marc Plano-Lesay 2025-05-21 15:32:43 +10:00
parent f9692b8ddf
commit ee7d7971be
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
13 changed files with 1147 additions and 163 deletions

View file

@ -1,4 +1,5 @@
use crate::models::Magnet;
use crate::services::database::DatabaseService;
use async_trait::async_trait;
use color_eyre::eyre::Result;
@ -21,6 +22,6 @@ pub trait Action {
/// Process all unprocessed magnet links and return the list of processed magnets
async fn process_unprocessed_magnets(
&mut self,
db: &mut crate::db::Database,
db_service: &mut DatabaseService,
) -> Result<ProcessedMagnets>;
}