refactor: reader and rename run

This commit is contained in:
Elijah McMorris 2024-08-28 14:25:17 -07:00
parent bb9967ced6
commit acef3f8f3b
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8
7 changed files with 72 additions and 67 deletions

View file

@ -5,6 +5,7 @@ use surrealdb::{engine::remote::ws::Client, Surreal};
use tokio::time::{sleep, Duration};
mod utils;
use init_reader::File_Format;
use utils::*;
lazy_static! {
@ -30,7 +31,7 @@ async fn main() -> Result<(), Error> {
let reader = File_Format::new(&WIKIDATA_FILE_FORMAT).reader(&WIKIDATA_FILE_NAME)?;
CREATE_VERSION
.run_threaded(
.run(
None::<Surreal<Client>>,
reader,
Some(pb.clone()),