mirror of
https://github.com/NexVeridian/wikidata-to-surrealdb.git
synced 2025-09-02 09:59:13 +00:00
refactor: reader and rename run
This commit is contained in:
parent
bb9967ced6
commit
acef3f8f3b
7 changed files with 72 additions and 67 deletions
|
@ -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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue