Mercurial > gemma
comparison pkg/controllers/importqueue.go @ 1328:d753ce6cf588
To make golint happier made context.Context to be the first argument in all calls.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 25 Nov 2018 16:26:41 +0100 |
parents | 24e4c60c2606 |
children | 89d013d55ec9 |
comparison
equal
deleted
inserted
replaced
1327:cabf4789e02b | 1328:d753ce6cf588 |
---|---|
360 return | 360 return |
361 } | 361 } |
362 | 362 |
363 if state == "accepted" { | 363 if state == "accepted" { |
364 if jc := imports.FindJobCreator(imports.JobKind(kind)); jc != nil { | 364 if jc := imports.FindJobCreator(imports.JobKind(kind)); jc != nil { |
365 if err = jc.StageDone(tx, ctx, id); err != nil { | 365 if err = jc.StageDone(ctx, tx, id); err != nil { |
366 return | 366 return |
367 } | 367 } |
368 } | 368 } |
369 | 369 |
370 if _, err = tx.ExecContext(ctx, deleteImportTrackSQL, id); err != nil { | 370 if _, err = tx.ExecContext(ctx, deleteImportTrackSQL, id); err != nil { |