comparison pkg/imports/track.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 930fdd8b474f
children 59055c8301df
comparison
equal deleted inserted replaced
1327:cabf4789e02b 1328:d753ce6cf588
22 trackImportSQL = ` 22 trackImportSQL = `
23 INSERT INTO waterway.track_imports (import_id, relation, key) 23 INSERT INTO waterway.track_imports (import_id, relation, key)
24 VALUES ($1, $2::regclass, $3)` 24 VALUES ($1, $2::regclass, $3)`
25 ) 25 )
26 26
27 func track(tx *sql.Tx, ctx context.Context, importID int64, relation string, key int64) error { 27 func track(ctx context.Context, tx *sql.Tx, importID int64, relation string, key int64) error {
28 _, err := tx.ExecContext(ctx, trackImportSQL, importID, relation, key) 28 _, err := tx.ExecContext(ctx, trackImportSQL, importID, relation, key)
29 return err 29 return err
30 } 30 }