Simplify test helper
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user