diff --git a/goSrcScan.go b/goSrcScan.go index 92917e6..3f630a6 100644 --- a/goSrcScan.go +++ b/goSrcScan.go @@ -167,37 +167,3 @@ func (f *Forge) checkpath(gopath string, url string) (*gitpb.Repo, error) { } 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 -}