diff options
Diffstat (limited to 'plugins/jobs/drivers/ephemeral/consumer.go')
-rw-r--r-- | plugins/jobs/drivers/ephemeral/consumer.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/jobs/drivers/ephemeral/consumer.go b/plugins/jobs/drivers/ephemeral/consumer.go index c49a23c1..2b0ff40b 100644 --- a/plugins/jobs/drivers/ephemeral/consumer.go +++ b/plugins/jobs/drivers/ephemeral/consumer.go @@ -68,10 +68,8 @@ func FromPipeline(pipeline *pipeline.Pipeline, log logger.Logger, eh events.Hand stopCh: make(chan struct{}, 1), } - jb.cfg.PipelineSize = uint64(pipeline.Int(pipelineSize, 100_000)) - // initialize a local queue - jb.localQueue = make(chan *Item, jb.cfg.PipelineSize) + jb.localQueue = make(chan *Item, pipeline.Int(pipelineSize, 100_000)) // consume from the queue go jb.consume() |