Skip to content

Commit

Permalink
Warp rejection handling
Browse files Browse the repository at this point in the history
  • Loading branch information
fulmicoton committed May 17, 2024
1 parent fdde733 commit f7938cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions quickwit/quickwit-serve/src/elasticsearch_api/bulk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub fn es_compat_bulk_handler(
})
.and(extract_format_from_qs())
.map(make_elastic_api_response)
.recover(crate::rest::recover_fn)
}

/// POST `_elastic/<index>/_bulk`
Expand Down
2 changes: 1 addition & 1 deletion quickwit/quickwit-serve/src/elasticsearch_api/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ pub(crate) fn elastic_index_count_filter(
pub(crate) fn elastic_delete_index_filter(
) -> impl Filter<Extract = (Vec<String>, DeleteQueryParams), Error = Rejection> + Clone {
warp::path!("_elastic" / String)
.and_then(extract_index_id_patterns)
.and(warp::delete())
.and_then(extract_index_id_patterns)
.and(serde_qs::warp::query(serde_qs::Config::default()))
}

Expand Down

0 comments on commit f7938cd

Please sign in to comment.