Skip to content

Commit

Permalink
Fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed Jun 30, 2020
1 parent 754519b commit 029ed88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const ConditionalToolTip = withTheme(
currentTime,
'',
'',
false // Doesn't sent request until reload() reload is called
false // Doesn't send request until reload() is called
);

const handleDataLoad = useCallback(() => {
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/infra/server/lib/snapshot/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const requestGroupedNodes = async (
>(callClusterFactory(client), query, bucketSelector, handleAfterKey);
};

const calcualteIndexPatterBasedOnMetrics = (options: InfraSnapshotRequestOptions) => {
const calculateIndexPatterBasedOnMetrics = (options: InfraSnapshotRequestOptions) => {
const { metrics } = options;
if (metrics.every((m) => m.type === 'logRate')) {
return options.sourceConfiguration.logAlias;
Expand All @@ -125,7 +125,7 @@ const requestNodeMetrics = async (
client: ESSearchClient,
options: InfraSnapshotRequestOptions
): Promise<InfraSnapshotNodeMetricsBucket[]> => {
const index = calcualteIndexPatterBasedOnMetrics(options);
const index = calculateIndexPatterBasedOnMetrics(options);
const query = {
allowNoIndices: true,
index,
Expand Down

0 comments on commit 029ed88

Please sign in to comment.