feat(storage,sqlite): begin tx with context
arcad/edge/pipeline/head This commit looks good Details

This commit is contained in:
wpetit 2023-04-13 11:23:34 +02:00
parent 4db7576b12
commit 310dac296f
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func Open(path string) (*sql.DB, error) {
func withTx(ctx context.Context, db *sql.DB, fn func(tx *sql.Tx) error) error {
var tx *sql.Tx
tx, err := db.Begin()
tx, err := db.BeginTx(ctx, nil)
if err != nil {
return errors.WithStack(err)
}