comparison pkg/imports/wp.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 f0641b5ad065
children b27edd1f2353
comparison
equal deleted inserted replaced
2167:40f26fbc505f 2168:b868cb653c4d
59 59
60 func init() { 60 func init() {
61 RegisterJobCreator(WPJobKind, wpJobCreator{}) 61 RegisterJobCreator(WPJobKind, wpJobCreator{})
62 } 62 }
63 63
64 func (wpJobCreator) Create(_ JobKind, data string) (Job, error) { 64 func (wpJobCreator) Create(data string) (Job, error) {
65 wp := new(WaterwayProfiles) 65 wp := new(WaterwayProfiles)
66 if err := common.FromJSONString(data, wp); err != nil { 66 if err := common.FromJSONString(data, wp); err != nil {
67 return nil, err 67 return nil, err
68 } 68 }
69 return wp, nil 69 return wp, nil