Skip to content

Commit

Permalink
Limit throughput on V2 path to 5% of traffic
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwadeson committed Feb 21, 2024
1 parent f0a1ddd commit 6910ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript/src/subscription-status/googleSubStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function handler(request: APIGatewayProxyEvent): Promise<APIGateway

// We're testing the new implementation in production, but want to limit traffic through this codepath
const roll = Math.floor(Math.random() * 100 + 1)
if (roll <= 100) {
if (roll <= 5) {
await updateParallelTestTable(purchaseToken, packageName)
}

Expand Down

0 comments on commit 6910ef3

Please sign in to comment.