Add cron jobs to service

This commit is contained in:
dwrz
2026-06-02 12:04:02 +00:00
parent e5238e4081
commit 6fb63c8c90
84 changed files with 3022 additions and 2452 deletions

View File

@@ -52,11 +52,9 @@ func ForEachPackage(ctxt *build.Context, found func(importPath string, err error
var wg sync.WaitGroup
for _, root := range ctxt.SrcDirs() {
wg.Add(1)
go func() {
wg.Go(func() {
allPackages(ctxt, root, ch)
wg.Done()
}()
})
}
go func() {
wg.Wait()
@@ -107,11 +105,9 @@ func allPackages(ctxt *build.Context, root string, ch chan<- item) {
}
for _, fi := range files {
if fi.IsDir() {
wg.Add(1)
go func() {
wg.Go(func() {
walkDir(filepath.Join(dir, fi.Name()))
wg.Done()
}()
})
}
}
}