Refactor App struct
This commit is contained in:
parent
f9692b8ddf
commit
ee7d7971be
13 changed files with 1147 additions and 163 deletions
|
|
@ -37,6 +37,7 @@ mod tests {
|
|||
use crate::actions::action::ProcessedMagnets;
|
||||
use crate::db::Database;
|
||||
use crate::models::Magnet;
|
||||
use crate::services::database::DatabaseService;
|
||||
use async_trait::async_trait;
|
||||
use color_eyre::eyre::{eyre, Result};
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
|
|
@ -66,7 +67,7 @@ mod tests {
|
|||
|
||||
async fn process_unprocessed_magnets(
|
||||
&mut self,
|
||||
_db: &mut Database,
|
||||
_db_service: &mut DatabaseService,
|
||||
) -> Result<ProcessedMagnets> {
|
||||
Ok(ProcessedMagnets {
|
||||
success: Vec::<Magnet>::new(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue