summaryrefslogtreecommitdiff
path: root/plugins/jobs/drivers/ephemeral/consumer.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-15 00:28:11 +0300
committerValery Piashchynski <[email protected]>2021-07-15 00:28:11 +0300
commitf4feb30197843d05eb308081ee579d3a9e3d6206 (patch)
treedf1a9f9ed83830f2876d7c98c7822b8129b87be1 /plugins/jobs/drivers/ephemeral/consumer.go
parent05055561600a240401f6e48e5b6c195d01050d45 (diff)
Remove duplicated logging
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/drivers/ephemeral/consumer.go')
-rw-r--r--plugins/jobs/drivers/ephemeral/consumer.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/plugins/jobs/drivers/ephemeral/consumer.go b/plugins/jobs/drivers/ephemeral/consumer.go
index 45ee8083..cd08ca7a 100644
--- a/plugins/jobs/drivers/ephemeral/consumer.go
+++ b/plugins/jobs/drivers/ephemeral/consumer.go
@@ -152,7 +152,7 @@ func (j *JobBroker) Pause(pipeline string) {
func (j *JobBroker) Resume(pipeline string) {
if q, ok := j.pipeline.Load(pipeline); ok {
if q == false {
- // mark pipeline as turned off
+ // mark pipeline as turned on
j.pipeline.Store(pipeline, true)
}
}
@@ -165,18 +165,6 @@ func (j *JobBroker) Resume(pipeline string) {
})
}
-func (j *JobBroker) List() []string {
- out := make([]string, 0, 2)
-
- j.pipeline.Range(func(key, value interface{}) bool {
- pipe := key.(string)
- out = append(out, pipe)
- return true
- })
-
- return out
-}
-
// Run is no-op for the ephemeral
func (j *JobBroker) Run(_ *pipeline.Pipeline) error {
return nil