Simplify test helper

This commit is contained in:
Hugh Kaznowski
2026-09-07 01:53:16 +01:00
parent d0ce524e95
commit 55820982b1
3 changed files with 27 additions and 41 deletions
-2
View File
@@ -122,9 +122,7 @@ impl EngineSnapshot {
_ => None,
})
}
}
impl EngineSnapshot {
pub(crate) fn from_index(index: BTreeMap<IndexKey, DataValue>) -> Self {
let mut snapshot = EngineSnapshot { index, ..Default::default() };
snapshot.rebuild_regex_caches();
-2
View File
@@ -25,8 +25,6 @@ use std::collections::BTreeMap;
pub(crate) fn handle_query(
snapshot: &EngineSnapshot,
query: EngineQuery,
_approx_bytes_total: u64,
_ingest_lag_high_watermark_ms: i64,
sort_helper_indexes: &mut HashMap<String, SortHelperIndexEntry>,
) -> EngineResponse {
handle_query_inner(snapshot, query, SortHelperAccess::Mutable(sort_helper_indexes))