summaryrefslogtreecommitdiff
path: root/plugins/jobs
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-09-02 17:52:18 +0300
committerValery Piashchynski <[email protected]>2021-09-02 17:52:18 +0300
commitc64005501f92888c10a61481745df91c7c50639f (patch)
treee0e76c148ce6016216082e610dce46b4608f472b /plugins/jobs
parent74c327a86e48ccc9d58833fce994ea134169d0a9 (diff)
Destroy localPrefetch channel on stop
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs')
-rw-r--r--plugins/jobs/rpc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jobs/rpc.go b/plugins/jobs/rpc.go
index 94f903d5..62186981 100644
--- a/plugins/jobs/rpc.go
+++ b/plugins/jobs/rpc.go
@@ -138,7 +138,7 @@ func (r *rpc) Stat(_ *jobsv1beta.Empty, resp *jobsv1beta.Stats) error {
// from converts from transport entity to domain
func (r *rpc) from(j *jobsv1beta.Job) *job.Job {
- headers := map[string][]string{}
+ headers := make(map[string][]string, len(j.GetHeaders()))
for k, v := range j.GetHeaders() {
headers[k] = v.GetValue()