Skip to content

Commit

Permalink
fixup! fixup! fixup: s/workers/parallelism
Browse files Browse the repository at this point in the history
Signed-off-by: mikcl <mikesmikes400@gmail.com>
  • Loading branch information
Mikcl committed Dec 1, 2022
1 parent f1e68ad commit b75e661
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions syft/pkg/cataloger/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ type Monitor struct {
PackagesDiscovered progress.Monitorable // the number of packages discovered from all registered catalogers
}

// CatalogResult provides the result of running a single cataloger against source
type CatalogResult struct {
// catalogResult provides the result of running a single cataloger against source
type catalogResult struct {
Packages []pkg.Package
Relationships []artifact.Relationship
// Discovered may sometimes be more than len(packages)
Expand All @@ -49,8 +49,8 @@ func newMonitor() (*progress.Manual, *progress.Manual) {
return &filesProcessed, &packagesDiscovered
}

func runCataloger(cataloger pkg.Cataloger, resolver source.FileResolver) (*CatalogResult, error) {
catalogerResult := new(CatalogResult)
func runCataloger(cataloger pkg.Cataloger, resolver source.FileResolver) (*catalogResult, error) {
catalogerResult := new(catalogResult)

// find packages from the underlying raw data
log.Debugf("cataloging with %q", cataloger.Name())
Expand Down Expand Up @@ -111,7 +111,7 @@ func Catalog(resolver source.FileResolver, release *linux.Release, parallelism i
log.Debugf("Using parallelism=%d for catalogs=%d", parallelism, nCatalogers)

jobs := make(chan pkg.Cataloger, nCatalogers)
results := make(chan *CatalogResult, nCatalogers)
results := make(chan *catalogResult, nCatalogers)
discoveredPackages := make(chan int64, nCatalogers)

waitGroup := sync.WaitGroup{}
Expand Down

0 comments on commit b75e661

Please sign in to comment.