Skip to content

Commit 6a0e175

Browse files
committed
refactor: update after rebase
1 parent 2b5987c commit 6a0e175

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Diff for: cmd/kar-controllers/app/server.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ func Run(ctx context.Context, opt *options.ServerOption) error {
6868
AgentConfigs: strings.Split(opt.AgentConfigs, ","),
6969
}
7070

71-
jobctrl := queuejob.NewJobController(restConfig, mcadConfig, extConfig)
72-
if jobctrl == nil {
73-
return fmt.Errorf("failed to create a job controller")
74-
}
7571

7672
g, gCtx := errgroup.WithContext(ctx)
7773

@@ -86,8 +82,7 @@ func Run(ctx context.Context, opt *options.ServerOption) error {
8682
return err
8783
}
8884

89-
// Create the job controller
90-
jobctrl := queuejob.NewJobController(config, opt)
85+
jobctrl := queuejob.NewJobController(restConfig, mcadConfig, extConfig)
9186
if jobctrl == nil {
9287
return fmt.Errorf("failed to create a job controller")
9388
}

0 commit comments

Comments
 (0)