rm old code

This commit is contained in:
Jeff Carr 2025-01-30 04:44:15 -06:00
parent 329710f9e7
commit 47ee3f1493
1 changed files with 0 additions and 34 deletions

View File

@ -167,37 +167,3 @@ func (f *Forge) checkpath(gopath string, url string) (*gitpb.Repo, error) {
} }
return repo, err return repo, err
} }
func (f *Forge) RillRedoGoMod() int {
var all []*gitpb.Repo
tmp := f.Repos.SortByFullPath()
for tmp.Scan() {
repo := tmp.Next()
if !repo.IsValidDir() {
log.Printf("%10s %-50s", "why am I in RillRedoGoMod? old?", repo.GetGoPath())
continue
}
f.Repos.Append(repo)
}
// Convert a slice of user IDs into a channel
ids := rill.FromSlice(all, nil)
var counter int
// Read users from the API.
// Concurrency = 20
dirs := rill.Map(ids, 50, func(id *gitpb.Repo) (*gitpb.Repo, error) {
return id, nil
})
err := rill.ForEach(dirs, 20, func(repo *gitpb.Repo) error {
counter += 1
// repo.RedoGoMod()
return nil
})
if err != nil {
log.Info("rill.ForEach() error:", err)
}
return counter
}