From 6a0e17547c42c4e41624cdb5a66e8e7619f8e659 Mon Sep 17 00:00:00 2001 From: Dimitri Saridakis Date: Fri, 15 Sep 2023 12:13:20 +0100 Subject: [PATCH] refactor: update after rebase --- cmd/kar-controllers/app/server.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/kar-controllers/app/server.go b/cmd/kar-controllers/app/server.go index a53b9ece..6ed71eac 100644 --- a/cmd/kar-controllers/app/server.go +++ b/cmd/kar-controllers/app/server.go @@ -68,10 +68,6 @@ func Run(ctx context.Context, opt *options.ServerOption) error { AgentConfigs: strings.Split(opt.AgentConfigs, ","), } - jobctrl := queuejob.NewJobController(restConfig, mcadConfig, extConfig) - if jobctrl == nil { - return fmt.Errorf("failed to create a job controller") - } g, gCtx := errgroup.WithContext(ctx) @@ -86,8 +82,7 @@ func Run(ctx context.Context, opt *options.ServerOption) error { return err } - // Create the job controller - jobctrl := queuejob.NewJobController(config, opt) + jobctrl := queuejob.NewJobController(restConfig, mcadConfig, extConfig) if jobctrl == nil { return fmt.Errorf("failed to create a job controller") }