批量空投
This commit is contained in:
@@ -29,8 +29,10 @@ func main() {
|
||||
serviceGroup := service.NewServiceGroup()
|
||||
defer serviceGroup.Stop()
|
||||
|
||||
jb := job.NewJob(ctx)
|
||||
serviceGroup.Add(jb)
|
||||
jbs := job.BuildJobs(ctx)
|
||||
for _, jb := range jbs {
|
||||
serviceGroup.Add(jb)
|
||||
}
|
||||
|
||||
httpSvr := rest.MustNewServer(c.RestConf, rest.WithCors(), errs.WithUnauthorizedCallback())
|
||||
handler.RegisterHandlers(httpSvr, ctx)
|
||||
|
||||
Reference in New Issue
Block a user