Skip to content

Commit

Permalink
improve function's naming
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Jan 27, 2023
1 parent 2b441c9 commit 960b788
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const createClientForExecutors = (

await Promise.all([
writeStatusChangeToConsole(normalizedArgs, logMeta),
writeStatusChangeToMonitoringService(normalizedArgs),
writeStatusChangeToRuleObject(normalizedArgs),
writeStatusChangeToEventLog(normalizedArgs),
]);
} catch (e) {
Expand Down Expand Up @@ -160,9 +160,7 @@ export const createClientForExecutors = (
writeMessageToConsole(logMessage, logLevel, logMeta);
};

const writeStatusChangeToMonitoringService = async (
args: NormalizedStatusChangeArgs
): Promise<void> => {
const writeStatusChangeToRuleObject = async (args: NormalizedStatusChangeArgs): Promise<void> => {
const { newStatus, message, metrics } = args;

if (newStatus === RuleExecutionStatus.running) {
Expand Down

0 comments on commit 960b788

Please sign in to comment.