From 173b8a4de139b7f7a82d86ca4931a2937cdc8ca8 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sun, 20 Mar 2022 21:51:33 +0000 Subject: [PATCH] Comment out tagging code from the rake seeder --- quickpeep_raker/src/bin/qp-seedrake.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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"))?;