Skip to content

Commit

Permalink
fix org id
Browse files Browse the repository at this point in the history
  • Loading branch information
Thushani-Jayasekera committed Sep 9, 2024
1 parent c16ec4a commit 0f4ca7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapter/internal/oasparser/model/mgw_swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ func (swagger *MgwSwagger) setXWso2Endpoints() error {
}

// SetEndpointsConfig set configs for Endpoints sent by api.yaml
func (endpointCluster *EndpointCluster) SetEndpointsConfig(endpointInfos []EndpointInfo, apiType string, orgId string) error {
func (endpointCluster *EndpointCluster) SetEndpointsConfig(endpointInfos []EndpointInfo, apiType string, orgID string) error {
if endpointInfos == nil || len(endpointInfos) == 0 {
return nil
}
Expand Down Expand Up @@ -670,7 +670,7 @@ func (endpointCluster *EndpointCluster) SetEndpointsConfig(endpointInfos []Endpo
if endpointCluster.Config.CircuitBreakers == nil && apiType == "WS" {
logger.LoggerOasparser.Debug("Adding CircuitBreakers for the endpoint cluster", endpointInfos[0].Endpoint)
conf, _ := config.ReadConfigs()
isPaidOrg := config.GetIsPaidOrganization(orgId)
isPaidOrg := config.GetIsPaidOrganization(orgID)
if isPaidOrg {
CircuitBreaker := &CircuitBreakers{
MaxConnections: int32(conf.Envoy.Upstream.DevTierCircuitBreaker.MaxConnections),
Expand Down

0 comments on commit 0f4ca7c

Please sign in to comment.