Skip to content

Commit

Permalink
add types hint
Browse files Browse the repository at this point in the history
  • Loading branch information
trinity-1686a committed Jul 15, 2024
1 parent 0efa672 commit c750349
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions quickwit/quickwit-search/src/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1190,12 +1190,12 @@ pub async fn search_plan(
+ warmup_info
.terms_grouped_by_field
.values()
.map(|terms| terms.len())
.map(|terms: &HashMap<tantivy::Term, bool>| terms.len())
.sum::<usize>();
let position_query_count = warmup_info
.terms_grouped_by_field
.values()
.map(|terms| {
.map(|terms: &HashMap<tantivy::Term, bool>| {
terms
.values()
.filter(|load_position| **load_position)
Expand Down
4 changes: 3 additions & 1 deletion quickwit/quickwit-search/src/search_response_rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ pub struct SearchPlanResponseRest {
pub storage_requests: StorageRequestCount,
}

/// Number of expected storage requests, per request kind
/// Number of expected storage requests, per request kind.
///
/// These figures do not take in account whether the data is already cached or not.
#[derive(Serialize, Deserialize, PartialEq, Debug, Default)]
pub struct StorageRequestCount {
/// Number of split footer downloaded, always 1
Expand Down

0 comments on commit c750349

Please sign in to comment.