From 56a257c3890acf27ec02968ff0156ba567c4d9f3 Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 8 Jan 2024 11:53:46 -0300 Subject: [PATCH] warcificator: limpiar --- warcificator/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/warcificator/src/main.rs b/warcificator/src/main.rs index 575a683..64d2af5 100644 --- a/warcificator/src/main.rs +++ b/warcificator/src/main.rs @@ -185,7 +185,7 @@ async fn worker(rx: Receiver, tx: Sender) { } Err(err) => { stderr() - .write_all(format!("Failed to fetch {}: {:#?}\n", url.as_str(), err).as_bytes()) + .write_all(format!("Failed to fetch {}: {:?}\n", url.as_str(), err).as_bytes()) .await .unwrap(); } @@ -355,7 +355,7 @@ fn now_sec() -> u64 { } async fn db_writer(rx: Receiver) { - let conn = Connection::open("../scraper/sqlite.db").unwrap(); + // let conn = Connection::open("../scraper/sqlite.db").unwrap(); // let mut stmt = conn.prepare("SELECT id, name, data FROM person")?; while let Ok(res) = rx.recv().await { println!("{:?}", res)