Skip to content

Commit

Permalink
fix: use rustls on redis and log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv committed Jun 4, 2024
1 parent ce6e465 commit bb905a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/indexing/src/ingestion_pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ impl IngestionPipeline {
.try_filter(move |node| {
let cache = Arc::clone(&cache);
// FIXME: Maybe Cow or arc instead? Lots of nodes
// Or we could get the key before the spawn
let node = node.clone();
tokio::spawn(async move {
let node = Arc::new(&node);
if !cache.get(&node).await {
cache.set(&node).await;

Expand All @@ -53,7 +55,10 @@ impl IngestionPipeline {
false
}
})
.unwrap_or_else(|_e| true)
.unwrap_or_else(|e| {
tracing::error!("Error filtering cached node: {:?}", e);
true
})
})
.boxed();
self
Expand Down

0 comments on commit bb905a3

Please sign in to comment.