diff options
author | Valery Piashchynski <[email protected]> | 2021-07-22 19:41:11 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-22 19:41:11 +0300 |
commit | 584e9ad1f50223f873661babae3b365a2b0662ec (patch) | |
tree | 16c0b10b57f6703e56f6c84d7d81ae43f554bbf4 /plugins/jobs/drivers/ephemeral | |
parent | 2ceebd687fd17b6029ef3df0e979c39bb39abc7f (diff) |
Initial tests for all drivers
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/drivers/ephemeral')
-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() |