Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-seitz-uniswap committed Feb 5, 2024
1 parent a350d24 commit 9a066e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/stacks/api-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export class APIStack extends cdk.Stack {
})

const getOrdersLambdaIntegration = new aws_apigateway.LambdaIntegration(getOrdersLambdaAlias, {})
const limitGetOrdersLambdaIntegration = new aws_apigateway.LambdaIntegration(getLimitOrdersLambdaAlias, {})
const getLimitOrdersLambdaIntegration = new aws_apigateway.LambdaIntegration(getLimitOrdersLambdaAlias, {})
const postOrderLambdaIntegration = new aws_apigateway.LambdaIntegration(postOrderLambdaAlias, {})
const postLimitOrderLambdaIntegration = new aws_apigateway.LambdaIntegration(postLimitOrderLambdaAlias, {})
const getNonceLambdaIntegration = new aws_apigateway.LambdaIntegration(getNonceLambdaAlias, {})
Expand Down Expand Up @@ -401,7 +401,7 @@ export class APIStack extends cdk.Stack {
const limitOrderOrder = limitOrders.addResource('order')
limitOrderOrder.addMethod('POST', postLimitOrderLambdaIntegration)
const limitOrderOrders = limitOrders.addResource('orders')
limitOrderOrders.addMethod('GET', limitGetOrdersLambdaIntegration, {})
limitOrderOrders.addMethod('GET', getLimitOrdersLambdaIntegration, {})

const orders = dutchAuction.addResource('orders')
const nonce = dutchAuction.addResource('nonce')
Expand Down
6 changes: 3 additions & 3 deletions bin/stacks/lambda-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,10 @@ export class LambdaStack extends cdk.NestedStack {
predefinedMetric: asg.PredefinedMetric.LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION,
})

const getLimitOrdersTarget = new asg.ScalableTarget(this, `GetLimitOrderOrders-ProvConcASG`, {
const getLimitOrdersTarget = new asg.ScalableTarget(this, `GetLimitOrders-ProvConcASG`, {
serviceNamespace: asg.ServiceNamespace.LAMBDA,
maxCapacity: provisionedConcurrency * 2,
minCapacity: provisionedConcurrency,
maxCapacity: 2,
minCapacity: 1,
resourceId: `function:${this.getLimitOrdersLambdaAlias.lambda.functionName}:${this.getLimitOrdersLambdaAlias.aliasName}`,
scalableDimension: 'lambda:function:ProvisionedConcurrency',
})
Expand Down

0 comments on commit 9a066e8

Please sign in to comment.