Skip to content

Commit

Permalink
Fix introspection query deduplication
Browse files Browse the repository at this point in the history
Introspection queries are not supposed to be cached, but their result still needds to be sent to deduplicated queries
  • Loading branch information
Geal committed Nov 13, 2024
1 parent ffec3f9 commit 0f9d856
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apollo-router/src/query_planner/caching_query_planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,10 @@ where
tokio::spawn(async move {
entry.insert(Ok(content)).await;
});
} else {
tokio::spawn(async move {
entry.send(Ok(content)).await;
});
}
}

Expand Down

0 comments on commit 0f9d856

Please sign in to comment.