Skip to content

Commit

Permalink
remove unused internal/data/v1/retrieve-api-artifacts API resource
Browse files Browse the repository at this point in the history
  • Loading branch information
slahirucd7 committed Feb 27, 2025
1 parent 450d7a1 commit 6ec908a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 3 additions & 6 deletions adapter/internal/adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,10 @@ func fetchChunkedAPIsOnStartUp(conf *config.Config, apiUUIDList []string, xdsOpt
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)
}
queryParamMap = common.PopulateQueryParamForDataPlane(queryParamMap)
adapter.GetAPIs(c, nil, nil, sync.RetrieveRuntimeArtifactEndpoint, true, apiUUIDList, queryParamMap)
}

for i := 0; i < 1; i++ {
data := <-c
logger.LoggerMgw.Debug("Receiving data for an environment")
Expand Down
4 changes: 0 additions & 4 deletions adapter/pkg/synchronizer/apis_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +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
)

// FetchAPIs submits the control plane http request to the thread pool. The thread pool would process it and return
Expand Down

0 comments on commit 6ec908a

Please sign in to comment.