From 1348bee6c71092d6cfa9af8d2db0a175427de2f7 Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 11 Jan 2024 15:47:54 -0300 Subject: [PATCH] no instrumentar funciones pesadas arregla problemas de perf --- scraper-rs/src/sites/coto.rs | 1 - scraper-rs/src/sites/vtex.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/scraper-rs/src/sites/coto.rs b/scraper-rs/src/sites/coto.rs index d7cccd0..f667f51 100644 --- a/scraper-rs/src/sites/coto.rs +++ b/scraper-rs/src/sites/coto.rs @@ -2,7 +2,6 @@ use anyhow::Context; use crate::PrecioPoint; -#[tracing::instrument(skip(dom))] pub fn parse(url: String, dom: &tl::VDom) -> Result { let ean = dom .query_selector("div#brandText") diff --git a/scraper-rs/src/sites/vtex.rs b/scraper-rs/src/sites/vtex.rs index f79f08b..1189e3e 100644 --- a/scraper-rs/src/sites/vtex.rs +++ b/scraper-rs/src/sites/vtex.rs @@ -32,7 +32,6 @@ pub fn get_json_lds<'a>( .filter_map(|n| n.as_tag()) .map(|t| serde_json::from_str(&t.inner_html(dom.parser()))) } -#[tracing::instrument] pub fn find_json_ld(dom: &VDom, typ: &str) -> Option> { get_json_lds(dom) .filter_map(|v| v.ok())