Skip to content

Commit

Permalink
switch to cbv2 during soft quote
Browse files Browse the repository at this point in the history
  • Loading branch information
ConjunctiveNormalForm committed Jul 18, 2024
1 parent 0603f73 commit a34f136
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/handlers/quote/injector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
} from '../../entities/aws-metrics-logger';
import { S3WebhookConfigurationProvider } from '../../providers';
import { FirehoseLogger } from '../../providers/analytics';
import { DynamoCircuitBreakerConfigurationProvider } from '../../providers/circuit-breaker/dynamo';
import { S3CircuitBreakerConfigurationProvider } from '../../providers/circuit-breaker/s3';
import { S3FillerComplianceConfigurationProvider } from '../../providers/compliance/s3';
import { Quoter, WebhookQuoter } from '../../quoters';
Expand Down Expand Up @@ -53,12 +54,12 @@ export class QuoteInjector extends ApiInjector<ContainerInjected, RequestInjecte

const stage = process.env['stage'];
const s3Key = stage === STAGE.BETA ? BETA_S3_KEY : PRODUCTION_S3_KEY;
const webhookProvider = new S3WebhookConfigurationProvider(log, `${WEBHOOK_CONFIG_BUCKET}-${stage}-1`, s3Key);

const circuitBreakerProvider = new S3CircuitBreakerConfigurationProvider(
const webhookProvider = new S3WebhookConfigurationProvider(log, `${WEBHOOK_CONFIG_BUCKET}-${stage}-1`, s3Key);
await webhookProvider.fetchEndpoints();
const circuitBreakerProvider = new DynamoCircuitBreakerConfigurationProvider(
log,
`${FADE_RATE_BUCKET}-${stage}-1`,
FADE_RATE_S3_KEY
webhookProvider.fillerEndpoints()
);

const complianceKey = stage === STAGE.BETA ? BETA_COMPLIANCE_S3_KEY : PROD_COMPLIANCE_S3_KEY;
Expand Down

0 comments on commit a34f136

Please sign in to comment.