Skip to content

Commit

Permalink
fix: wrong default value for pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tarzacodes committed Jan 8, 2024
1 parent 8f400eb commit bb1476c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const sample = <T>(items: (T | undefined)[]): T | undefined => {
}

export const getAddressResolverFromEnv = (): { host: string; port: number } => {

Check failure on line 34 in src/util.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Cannot redeclare block-scoped variable 'getAddressResolverFromEnv'.
const envValue = process.env.RABBIT_MQ_TEST_ADDRESS_BALANCER ?? "localhost:5553"
const envValue = process.env.RABBIT_MQ_TEST_ADDRESS_BALANCER ?? "localhost:5552"
const [host, port] = envValue.split(":")
return { host: host ?? "localhost", port: parseInt(port) ?? 5553 }
}

0 comments on commit bb1476c

Please sign in to comment.