diff 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
line wrap: on
line diff
--- a/pkg/controllers/importqueue.go	Sun Nov 25 15:56:07 2018 +0100
+++ b/pkg/controllers/importqueue.go	Sun Nov 25 16:26:41 2018 +0100
@@ -362,7 +362,7 @@
 
 	if state == "accepted" {
 		if jc := imports.FindJobCreator(imports.JobKind(kind)); jc != nil {
-			if err = jc.StageDone(tx, ctx, id); err != nil {
+			if err = jc.StageDone(ctx, tx, id); err != nil {
 				return
 			}
 		}