Skip to content

Commit

Permalink
Rename variables according to type
Browse files Browse the repository at this point in the history
Seems left over from prev development as are we
[passing](quickwit/quickwit-serve/src/elasticsearch_api/mod.rs:81)
`metastore` service.
  • Loading branch information
kuzaxak committed Jun 8, 2024
1 parent f94461f commit d59e644
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions quickwit/quickwit-serve/src/elasticsearch_api/rest_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,30 +135,30 @@ pub fn es_compat_delete_index_handler(

/// GET _elastic/_stats
pub fn es_compat_stats_handler(
search_service: MetastoreServiceClient,
metastore_service: MetastoreServiceClient,
) -> impl Filter<Extract = (impl warp::Reply,), Error = Rejection> + Clone {
elastic_stats_filter()
.and(with_arg(search_service))
.and(with_arg(metastore_service))
.then(es_compat_stats)
.map(|result| make_elastic_api_response(result, BodyFormat::default()))
}

/// GET _elastic/{index}/_stats
pub fn es_compat_index_stats_handler(
search_service: MetastoreServiceClient,
metastore_service: MetastoreServiceClient,
) -> impl Filter<Extract = (impl warp::Reply,), Error = Rejection> + Clone {
elastic_index_stats_filter()
.and(with_arg(search_service))
.and(with_arg(metastore_service))
.then(es_compat_index_stats)
.map(|result| make_elastic_api_response(result, BodyFormat::default()))
}

/// GET _elastic/_cat/indices
pub fn es_compat_cat_indices_handler(
search_service: MetastoreServiceClient,
metastore_service: MetastoreServiceClient,
) -> impl Filter<Extract = (impl warp::Reply,), Error = Rejection> + Clone {
elastic_cat_indices_filter()
.and(with_arg(search_service))
.and(with_arg(metastore_service))
.then(es_compat_cat_indices)
.map(|result| make_elastic_api_response(result, BodyFormat::default()))
}
Expand Down

0 comments on commit d59e644

Please sign in to comment.