Skip to content

Commit

Permalink
chore: remove db
Browse files Browse the repository at this point in the history
  • Loading branch information
zhifengle committed Oct 14, 2022
1 parent 206acba commit 4586db0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
/.idea
db.sqlite
Binary file removed db.sqlite
Binary file not shown.
9 changes: 7 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
mod app;
mod db;
mod downloader;
mod request;
mod rss_config;
mod rss_site;
mod yiyiwu;
mod downloader;

use app::build_app;
use db::RssService;
Expand Down Expand Up @@ -114,7 +114,12 @@ async fn execute_rss_task(
let res = yiyiwu.add_batch_task(&tasks, config.cid.clone()).await?;
match res.errcode {
0 => {
log::info!("[115] [{}] add {} tasks", config.url, item_list.len());
log::info!(
"[115] [{}] [{}] add {} tasks",
config.name,
config.url,
item_list.len()
);
service.save_items(&item_list, true)?;
}
911 => {
Expand Down

0 comments on commit 4586db0

Please sign in to comment.