Skip to content

Commit

Permalink
removal of unused internal service resource path named retrieve-api-a…
Browse files Browse the repository at this point in the history
…rtifacts and its usage
  • Loading branch information
slahirucd7 committed Jan 22, 2025
1 parent 450d7a1 commit 3895236
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 3 additions & 7 deletions adapter/internal/adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,13 +373,9 @@ func fetchChunkedAPIsOnStartUp(conf *config.Config, apiUUIDList []string, xdsOpt
} else {
adapter.GetAPIs(c, nil, envs, sync.RuntimeArtifactEndpoint, true, nil, queryParamMap)
}
} else {
if conf.ControlPlane.DynamicEnvironments.Enabled {
queryParamMap = common.PopulateQueryParamForDataPlane(queryParamMap)
adapter.GetAPIs(c, nil, nil, sync.RetrieveRuntimeArtifactEndpoint, true, apiUUIDList, queryParamMap)
} else {
adapter.GetAPIs(c, nil, envs, sync.APIArtifactEndpoint, true, apiUUIDList, queryParamMap)
}
} else if conf.ControlPlane.DynamicEnvironments.Enabled {
queryParamMap = common.PopulateQueryParamForDataPlane(queryParamMap)
adapter.GetAPIs(c, nil, nil, sync.RetrieveRuntimeArtifactEndpoint, true, apiUUIDList, queryParamMap)
}
for i := 0; i < 1; i++ {
data := <-c
Expand Down
2 changes: 0 additions & 2 deletions adapter/pkg/synchronizer/apis_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ const (
RuntimeArtifactEndpoint string = "internal/data/v1/runtime-artifacts"
//RetrieveRuntimeArtifactEndpoint represents the RuntimeArtifactEndpoint endpoint with dataplane identifier
RetrieveRuntimeArtifactEndpoint string = "internal/data/v1/retrieve-runtime-artifacts"
// APIArtifactEndpoint represents the /retrieve-api-artifacts endpoint.
APIArtifactEndpoint string = "internal/data/v1/retrieve-api-artifacts"
// httpTimeout is for connection timeout of httpClient in seconds
httpTimeout time.Duration = 30
)
Expand Down

0 comments on commit 3895236

Please sign in to comment.