summaryrefslogtreecommitdiff
path: root/plugins/jobs/brokers/ephemeral/consumer.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jobs/brokers/ephemeral/consumer.go')
-rw-r--r--plugins/jobs/brokers/ephemeral/consumer.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/jobs/brokers/ephemeral/consumer.go b/plugins/jobs/brokers/ephemeral/consumer.go
index 030dcae8..09e78249 100644
--- a/plugins/jobs/brokers/ephemeral/consumer.go
+++ b/plugins/jobs/brokers/ephemeral/consumer.go
@@ -121,11 +121,11 @@ func (j *JobBroker) Resume(pipeline string) {
}
}
-func (j *JobBroker) List() []*pipeline.Pipeline {
- out := make([]*pipeline.Pipeline, 0, 2)
+func (j *JobBroker) List() []string {
+ out := make([]string, 0, 2)
j.queues.Range(func(key, value interface{}) bool {
- pipe := key.(*pipeline.Pipeline)
+ pipe := key.(string)
out = append(out, pipe)
return true
})