Mercurial > gemma
diff pkg/imports/queue.go @ 2168:b868cb653c4d
Import queue: The job kind parameter when creating a new job from a string was never used.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 08 Feb 2019 15:39:17 +0100 |
parents | 59055c8301df |
children | 7c83b5277c1c |
line wrap: on
line diff
--- a/pkg/imports/queue.go Fri Feb 08 15:30:16 2019 +0100 +++ b/pkg/imports/queue.go Fri Feb 08 15:39:17 2019 +0100 @@ -73,11 +73,10 @@ // Description is the long name of the import. Description() string // Create build the actual job. - // kind is the name of the import type. // data is a free form string to pass arguments to the creation // process. This is useful to tell e.g. where to find data // in the file system to be used for importing. - Create(kind JobKind, data string) (Job, error) + Create(data string) (Job, error) // Depends returns a list of ressources locked by this type of import. // Imports are run concurrently if they have disjoint sets // of dependencies. @@ -589,7 +588,7 @@ } }() - job, err := jc.Create(idj.kind, idj.data) + job, err := jc.Create(idj.data) if err != nil { errorAndFail(idj.id, "failed to create job for import #%d: %v", idj.id, err)