This commit is contained in:
2024-12-19 18:38:43 -08:00
parent 5ddb4452ff
commit e7feb73f6f
2 changed files with 9 additions and 1 deletions

View File

@@ -258,7 +258,7 @@ impl Transformer for SlurpContents {
let Some(selectors) = self.get_selectors(&link) else {
return Ok(html.to_string());
};
let mut cacher = self.cacher.lock().await;
let cacher = self.cacher.lock().await;
let body = if let Some(body) = cacher.get(link.as_str()) {
info!("cache hit for {link}");
String::from_utf8_lossy(&body).to_string()