Skip to content

Commit

Permalink
Add review change
Browse files Browse the repository at this point in the history
  • Loading branch information
Thushani-Jayasekera authored Dec 13, 2024
1 parent 70063f0 commit 514795e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions adapter/internal/synchronizer/apis_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ func PushAPIProjects(payload []byte, environments []string, xdsOptions common.Xd
return err
}

choreoComponentInfo := deployment.ChoreoComponentInfo

vhostToEnvsMap := make(map[string][]*synchronizer.GatewayLabel)
for index := range deployment.Environments {
env := deployment.Environments[index]
Expand All @@ -115,7 +113,7 @@ func PushAPIProjects(payload []byte, environments []string, xdsOptions common.Xd
// Pass the byte slice for the XDS APIs to push it to the enforcer and router
// TODO: (renuka) optimize applying API project, update maps one by one and apply xds once
var deployedRevisionList []*notifier.DeployedAPIRevision
deployedRevisionList, err = apiServer.ApplyAPIProjectFromAPIM(apiFileData, vhostToEnvsMap, envProps, xdsOptions, choreoComponentInfo)
deployedRevisionList, err = apiServer.ApplyAPIProjectFromAPIM(apiFileData, vhostToEnvsMap, envProps, xdsOptions, deployment.ChoreoComponentInfo)
if err != nil {
logger.LoggerSync.Errorf("Error occurred while applying project %v", err)
} else if deployedRevisionList != nil {
Expand Down

0 comments on commit 514795e

Please sign in to comment.