Skip to content

Commit f3fb816

Browse files
fix env var name mismatch
1 parent d467a8b commit f3fb816

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

framework/components/dockercompose/billing_platform_service/billing_platform_service.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ func New(in *Input) (*Output, error) {
111111
// set development defaults for necessary environment variables and allow them to be overridden by the host process
112112
envVars := make(map[string]string)
113113

114-
envVars["BILLING_SERVICE_PORT"] = DEFAULT_BILLING_PLATFORM_SERVICE_BILLING_GRPC_PORT
115-
envVars["CREDIT_RESERVATION_SERVICE_PORT"] = DEFAULT_BILLING_PLATFORM_SERVICE_CREDIT_GRPC_PORT
114+
envVars["BILLING_SERVER_PORT"] = DEFAULT_BILLING_PLATFORM_SERVICE_BILLING_GRPC_PORT
115+
envVars["CREDIT_RESERVATION_SERVER_PORT"] = DEFAULT_BILLING_PLATFORM_SERVICE_CREDIT_GRPC_PORT
116116
envVars["MAINNET_WORKFLOW_REGISTRY_CHAIN_SELECTOR"] = strconv.FormatUint(in.ChainSelector, 10)
117117
envVars["MAINNET_WORKFLOW_REGISTRY_CONTRACT_ADDRESS"] = in.WorkflowRegistryAddress
118118
envVars["MAINNET_WORKFLOW_REGISTRY_RPC_URL"] = in.RPCURL
@@ -247,8 +247,8 @@ func New(in *Input) (*Output, error) {
247247

248248
func getExternalPorts(ctx context.Context, billingExternalHost string, envVars map[string]string, billingContainer *testcontainers.DockerContainer) (*BillingPlatformServiceOutput, error) {
249249
ports := map[string]nat.Port{
250-
"billing": nat.Port(envVars["BILLING_SERVICE_PORT"]),
251-
"credit": nat.Port(envVars["CREDIT_RESERVATION_SERVICE_PORT"]),
250+
"billing": nat.Port(envVars["BILLING_SERVER_PORT"]),
251+
"credit": nat.Port(envVars["CREDIT_RESERVATION_SERVER_PORT"]),
252252
}
253253

254254
output := BillingPlatformServiceOutput{}

0 commit comments

Comments
 (0)