diff options
Diffstat (limited to 'rill.go')
| -rw-r--r-- | rill.go | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -115,9 +115,9 @@ func (f *Forge) RillFuncError(rillf func(*gitpb.Repo) error) map[string]*RillSta } func (f *Forge) ConfigRill(rillX int, rillY int) { - f.rillX = rillX - f.rillY = rillY - log.Infof("Setting rill values to %d,%d\n", f.rillX, f.rillY) + f.Config.RillX = int32(rillX) + f.Config.RillY = int32(rillY) + log.Infof("Setting rill values to %d,%d\n", f.Config.RillX, f.Config.RillY) } type RillStats struct { @@ -148,6 +148,7 @@ func (f *Forge) RillRepos(rillf func(*gitpb.Repo) error) map[string]*RillStats { } all = append(all, repo) } + // log.Info("Rill Repos len =", len(all)) // Convert a slice of user IDs into a channel ids := rill.FromSlice(all, nil) @@ -156,11 +157,11 @@ func (f *Forge) RillRepos(rillf func(*gitpb.Repo) error) map[string]*RillStats { // Read users from the API. // Concurrency = 20 - dirs := rill.Map(ids, f.rillX, func(id *gitpb.Repo) (*gitpb.Repo, error) { + dirs := rill.Map(ids, int(f.Config.RillX), func(id *gitpb.Repo) (*gitpb.Repo, error) { return id, nil }) - rill.ForEach(dirs, f.rillY, func(repo *gitpb.Repo) error { + rill.ForEach(dirs, int(f.Config.RillY), func(repo *gitpb.Repo) error { // todo: make this a goroutine to show stats to the user rillMu.Lock() counter += 1 |
