diff --git a/quickpeep_raker/src/bin/qp-seedrake.rs b/quickpeep_raker/src/bin/qp-seedrake.rs index bb03be5..cc7cca1 100644 --- a/quickpeep_raker/src/bin/qp-seedrake.rs +++ b/quickpeep_raker/src/bin/qp-seedrake.rs @@ -1,13 +1,11 @@ use clap::Parser; use std::borrow::{Borrow, BorrowMut}; -use std::collections::BTreeSet; use env_logger::Env; use anyhow::{anyhow, bail, Context}; -use smartstring::alias::CompactString; -use colour::{cyan, dark_green_ln, dark_yellow, green, green_ln, yellow, yellow_ln}; +use colour::{dark_green_ln, dark_yellow, green, yellow_ln}; use reqwest::{Client, Url}; use std::path::PathBuf; use tokio::sync::mpsc; @@ -81,7 +79,7 @@ pub async fn main() -> anyhow::Result<()> { pub struct Seed { url: UrlOrUrlPattern, - tags: BTreeSet, + // TODO These make more sense at the indexer stage. tags: BTreeSet, } /// Either a URL or a URL prefix. @@ -109,15 +107,17 @@ async fn seed_loader(seed_files: Vec, send: &Sender) -> anyhow::R Ok(seedblocks) => { for seedblock in seedblocks { for seed in seedblock.seeds { + /* let tags: BTreeSet = seedblock .tags .iter() .chain(seed.extra_tags.iter()) .cloned() .collect(); + */ send.send(Seed { url: seed_url_parse_pattern(seed.url), - tags, + // tags, }) .await .map_err(|_| anyhow!("Seed receiver shut down prematurely"))?;