mirror of https://github.com/harness/drone.git
fix: [ML-505]: Fix make wire (#3122)
parent
7b214b58d5
commit
2942fbba69
|
@ -30,7 +30,7 @@ func ProvideAiAgent(
|
||||||
authorizer authz.Authorizer,
|
authorizer authz.Authorizer,
|
||||||
cr *capabilities.Registry,
|
cr *capabilities.Registry,
|
||||||
cc *capabilitiesctrl.Controller,
|
cc *capabilitiesctrl.Controller,
|
||||||
) (*GitnessIntelligence, error) {
|
) (Intelligence, error) {
|
||||||
return &GitnessIntelligence{
|
return &GitnessIntelligence{
|
||||||
authorizer,
|
authorizer,
|
||||||
cr,
|
cr,
|
||||||
|
|
|
@ -431,7 +431,7 @@ func initSystem(ctx context.Context, config *types.Config) (*server.System, erro
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
capabilitiesController := capabilities2.ProvideController(registry)
|
capabilitiesController := capabilities2.ProvideController(registry)
|
||||||
harnessIntelligence, err := aiagent.ProvideAiAgent(authorizer, registry, capabilitiesController)
|
intelligence, err := aiagent.ProvideAiAgent(authorizer, registry, capabilitiesController)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -439,7 +439,7 @@ func initSystem(ctx context.Context, config *types.Config) (*server.System, erro
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
aiagentController := aiagent2.ProvideController(authorizer, harnessIntelligence, repoStore, pipelineStore, executionStore, gitInterface, provider, slack)
|
aiagentController := aiagent2.ProvideController(authorizer, intelligence, repoStore, pipelineStore, executionStore, gitInterface, provider, slack)
|
||||||
openapiService := openapi.ProvideOpenAPIService()
|
openapiService := openapi.ProvideOpenAPIService()
|
||||||
storageDriver, err := api2.BlobStorageProvider(config)
|
storageDriver, err := api2.BlobStorageProvider(config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue