Skip to content

Commit 77238a9

Browse files
authored
Check that max_goroutines is at least min_goroutines (#28)
1 parent 87deba2 commit 77238a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (p *SourcePlugin) Sync(ctx context.Context, spec specs.Source, res chan<- *
138138

139139
// limiter used to limit the amount of resources fetched concurrently
140140
maxGoroutines := spec.MaxGoRoutines
141-
if maxGoroutines == 0 {
141+
if maxGoroutines < minGoRoutines {
142142
maxGoroutines = minGoRoutines
143143
}
144144
p.logger.Info().Uint64("max_goroutines", maxGoroutines).Msg("starting fetch")

0 commit comments

Comments
 (0)