Skip to content

Commit

Permalink
fix typo and remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
trinity-1686a committed Feb 8, 2023
1 parent a045447 commit 58a8563
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion quickwit/quickwit-proto/protos/quickwit/search_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ service SearchService {

// Root list terms API.
// This RPC identifies the set of splits on which the query should run on,
// and dispatches the several calls to `LeafListTerm`.
// and dispatches the several calls to `LeafListTerms`.
//
// It is also in charge of merging back the results.
rpc RootListTerms(ListTermsRequest) returns (ListTermsResponse);
Expand Down
4 changes: 2 additions & 2 deletions quickwit/quickwit-proto/src/quickwit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ pub mod search_service_client {
}
/// Root list terms API.
/// This RPC identifies the set of splits on which the query should run on,
/// and dispatches the several calls to `LeafListTerm`.
/// and dispatches the several calls to `LeafListTerms`.
///
/// It is also in charge of merging back the results.
pub async fn root_list_terms(
Expand Down Expand Up @@ -701,7 +701,7 @@ pub mod search_service_server {
) -> Result<tonic::Response<Self::LeafSearchStreamStream>, tonic::Status>;
/// Root list terms API.
/// This RPC identifies the set of splits on which the query should run on,
/// and dispatches the several calls to `LeafListTerm`.
/// and dispatches the several calls to `LeafListTerms`.
///
/// It is also in charge of merging back the results.
async fn root_list_terms(
Expand Down
15 changes: 0 additions & 15 deletions quickwit/quickwit-search/src/cluster_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,21 +153,6 @@ impl ClusterClient {
) -> crate::Result<LeafListTermsResponse> {
let response_res = client.leaf_list_terms(request.clone()).await;
// TODO: implement retry
// let retry_policy = LeafSearchRetryPolicy {};
// if let Some(retry_request) = retry_policy.retry_request(request, &response_res) {
// assert!(!retry_request.split_offsets.is_empty());
// client = retry_client(
// &self.client_pool,
// &client,
// &retry_request.split_offsets[0].split_id,
// )?;
// debug!(
// "Leaf search response error: `{:?}`. Retry once to execute {:?} with {:?}",
// response_res, retry_request, client
// );
// let retry_result = client.leaf_search(retry_request).await;
// response_res = merge_leaf_search_results(response_res, retry_result);
// }
response_res
}
}
Expand Down

0 comments on commit 58a8563

Please sign in to comment.