aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-cache/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pingora-cache/src/lib.rs')
-rw-r--r--pingora-cache/src/lib.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/pingora-cache/src/lib.rs b/pingora-cache/src/lib.rs
index f1f8bd2..8f88299 100644
--- a/pingora-cache/src/lib.rs
+++ b/pingora-cache/src/lib.rs
@@ -612,7 +612,15 @@ impl HttpCache {
// Downstream read and upstream write can be decoupled
let body_reader = inner
.storage
- .lookup(key, &inner.traces.get_miss_span())
+ .lookup_streaming_write(
+ key,
+ inner
+ .miss_handler
+ .as_ref()
+ .expect("miss handler already set")
+ .streaming_write_tag(),
+ &inner.traces.get_miss_span(),
+ )
.await?;
if let Some((_meta, body_reader)) = body_reader {