Skip to content

Commit

Permalink
style: fixed style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
theburningmonk committed Dec 10, 2020
1 parent 1c1bb2f commit 9b2a2be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/commands/analyze-lambda-cold-starts.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@ class AnalyzeLambdaColdStartsCommand extends Command {
async getProvisionedConcurrencyUtilization(region, functions) {
const AWS = getAWSSDK();
const CloudWatch = new AWS.CloudWatch({ region });

const startTime = new Date(Date.now() - global.minutes * ONE_MIN_IN_MILLIS);
const queries = _.flatMap(functions, ({ functionName, qualifiers }) =>
qualifiers.map(qualifier => this.utilizationMetric(functionName, qualifier))
);

// CloudWatch only allows 100 queries per request
const promises = _.chunk(queries, 100).map(async chunk => {
const resp = await CloudWatch.getMetricData({
Expand Down
3 changes: 2 additions & 1 deletion src/commands/measure-lambda-cold-starts.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ class MeasureLambdaColdStartsCommand extends Command {
}
}

MeasureLambdaColdStartsCommand.description = "Measures a function's cold start duration (i.e. duration + initDuration)";
MeasureLambdaColdStartsCommand.description =
"Measures a function's cold start duration (i.e. duration + initDuration)";
MeasureLambdaColdStartsCommand.flags = {
functionName: flags.string({
char: "n",
Expand Down

0 comments on commit 9b2a2be

Please sign in to comment.