diff options
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 |
