File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,6 @@ func Run(ctx context.Context, opt *options.ServerOption) error {
68
68
AgentConfigs : strings .Split (opt .AgentConfigs , "," ),
69
69
}
70
70
71
- jobctrl := queuejob .NewJobController (restConfig , mcadConfig , extConfig )
72
- if jobctrl == nil {
73
- return fmt .Errorf ("failed to create a job controller" )
74
- }
75
71
76
72
g , gCtx := errgroup .WithContext (ctx )
77
73
@@ -86,8 +82,7 @@ func Run(ctx context.Context, opt *options.ServerOption) error {
86
82
return err
87
83
}
88
84
89
- // Create the job controller
90
- jobctrl := queuejob .NewJobController (config , opt )
85
+ jobctrl := queuejob .NewJobController (restConfig , mcadConfig , extConfig )
91
86
if jobctrl == nil {
92
87
return fmt .Errorf ("failed to create a job controller" )
93
88
}
You can’t perform that action at this time.
0 commit comments