Skip to content

Commit

Permalink
Fix code style issues with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lint-action committed Jun 5, 2022
1 parent bb73b04 commit 3a58b18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/stacks/routing-api-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class RoutingAPIStack extends cdk.Stack {
parent: Construct,
name: string,
props: cdk.StackProps & {
jsonRpcProviders: {[chainName: string]:string}
jsonRpcProviders: { [chainName: string]: string }
provisionedConcurrency: number
throttlingOverride?: string
ethGasStationInfoUrl: string
Expand Down
4 changes: 2 additions & 2 deletions bin/stacks/routing-lambda-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface RoutingLambdaStackProps extends cdk.NestedStackProps {
poolCacheBucket: aws_s3.Bucket
poolCacheBucket2: aws_s3.Bucket
poolCacheKey: string
jsonRpcProviders: {[chainName: string]:string}
jsonRpcProviders: { [chainName: string]: string }
tokenListCacheBucket: aws_s3.Bucket
provisionedConcurrency: number
ethGasStationInfoUrl: string
Expand Down Expand Up @@ -73,7 +73,7 @@ export class RoutingLambdaStack extends cdk.NestedStack {
POOL_CACHE_KEY: poolCacheKey,
TOKEN_LIST_CACHE_BUCKET: tokenListCacheBucket.bucketName,
ETH_GAS_STATION_INFO_URL: ethGasStationInfoUrl,
...jsonRpcProviders
...jsonRpcProviders,
},
layers: [
aws_lambda.LayerVersion.fromLayerVersionArn(
Expand Down
7 changes: 3 additions & 4 deletions lib/handlers/injector-sor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@ export abstract class InjectorSOR<Router, QueryParams> extends Injector<
_.map(SUPPORTED_CHAINS, async (chainId: ChainId) => {
const url = process.env[`WEB3_RPC_${chainId.toString()}`]!

if(!url) {
log.fatal({'chainId':chainId}, `Fatal: No Web3 RPC endpoint set for chain`)
return {chainId,
dependencies: {} as ContainerDependencies}
if (!url) {
log.fatal({ chainId: chainId }, `Fatal: No Web3 RPC endpoint set for chain`)
return { chainId, dependencies: {} as ContainerDependencies }
// This router instance will not be able to route through any chain
// for which RPC URL is not set
// This will be handled at the quote.ts and quote-to-ratio.ts
Expand Down

0 comments on commit 3a58b18

Please sign in to comment.