Skip to content

Commit

Permalink
Clean up miscellaneous courier exports.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Dec 2, 2019
1 parent 7356e72 commit 6c99b0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/legacy/ui/public/courier/fetch/get_search_params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ export function getSearchParams(config: IUiSettingsClient, esShardTimeout: numbe
};
}

export function getIgnoreThrottled(config: IUiSettingsClient) {
function getIgnoreThrottled(config: IUiSettingsClient) {
return !config.get('search:includeFrozen');
}

export function getMaxConcurrentShardRequests(config: IUiSettingsClient) {
function getMaxConcurrentShardRequests(config: IUiSettingsClient) {
const maxConcurrentShardRequests = config.get('courier:maxConcurrentShardRequests');
return maxConcurrentShardRequests > 0 ? maxConcurrentShardRequests : undefined;
}
Expand Down
7 changes: 3 additions & 4 deletions src/legacy/ui/public/courier/utils/courier_inspector_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { i18n } from '@kbn/i18n';
import { SearchResponse } from 'elasticsearch';
import { SearchSourceContract, RequestInspectorStats } from '../types';

function getRequestInspectorStats(searchSource: SearchSourceContract) {
export function getRequestInspectorStats(searchSource: SearchSourceContract) {
const stats: RequestInspectorStats = {};
const index = searchSource.getField('index');

Expand Down Expand Up @@ -56,7 +56,8 @@ function getRequestInspectorStats(searchSource: SearchSourceContract) {

return stats;
}
function getResponseInspectorStats(

export function getResponseInspectorStats(
searchSource: SearchSourceContract,
resp: SearchResponse<unknown>
) {
Expand Down Expand Up @@ -121,5 +122,3 @@ function getResponseInspectorStats(

return stats;
}

export { getRequestInspectorStats, getResponseInspectorStats };

0 comments on commit 6c99b0e

Please sign in to comment.