diff options
| author | Jeff Carr <[email protected]> | 2025-11-02 08:58:56 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-11-02 08:58:56 -0600 |
| commit | ab7db21e07faac62f1abfb2b33634586979a0ded (patch) | |
| tree | 19a58f865c31be555f75b00cd213796ca542a4ee /rill.go | |
| parent | 6fa3221e265933038342acb50caad3c2bbb6c136 (diff) | |
new gitpb/repo.protodevel
Diffstat (limited to 'rill.go')
| -rw-r--r-- | rill.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -161,8 +161,8 @@ func (f *Forge) RillRepos(rillf func(*gitpb.Repo) error) map[string]*RillStats { } // returns the set of failed repos -func (f *Forge) RunOnReposNew(repos *gitpb.Repos, rillf func(*gitpb.Repo) error) *gitpb.Repos { - stats := f.RunOnRepos(repos, rillf) +func (f *Forge) RunOnRepos(repos *gitpb.Repos, rillf func(*gitpb.Repo) error) *gitpb.Repos { + stats := f.RunOnReposOld(repos, rillf) failed := gitpb.NewRepos() for s, stat := range stats { if stat.Err == nil { @@ -184,7 +184,7 @@ func (f *Forge) RunOnReposNew(repos *gitpb.Repos, rillf func(*gitpb.Repo) error) // Use this if you think SMP processing might be the problem. // if this works, and GO Rill doesn't work, then you, yes you, are the problem. Your code sucks. // fix it, happy hacking -func (f *Forge) RunOnReposNewDumb(repos *gitpb.Repos, rillf func(*gitpb.Repo) error) *gitpb.Repos { +func (f *Forge) RunOnReposSlow(repos *gitpb.Repos, rillf func(*gitpb.Repo) error) *gitpb.Repos { failed := gitpb.NewRepos() counter := 1 for repo := range repos.IterAll() { @@ -204,7 +204,7 @@ func (f *Forge) RunOnReposNewDumb(repos *gitpb.Repos, rillf func(*gitpb.Repo) er // y is how many simultanous functions will run // todo: tune and compute x,y by # of CPUs and disk io // todo: store x,y in forge config ? (or compute them. notsure) -func (f *Forge) RunOnRepos(repos *gitpb.Repos, rillf func(*gitpb.Repo) error) map[string]*RillStats { +func (f *Forge) RunOnReposOld(repos *gitpb.Repos, rillf func(*gitpb.Repo) error) map[string]*RillStats { var all []*gitpb.Repo var stats map[string]*RillStats |
