@@ -96,7 +96,7 @@ func (s *BaseDB) FetchLoopOutSwap(ctx context.Context,
9696func (s * BaseDB ) CreateLoopOut (ctx context.Context , hash lntypes.Hash ,
9797 swap * LoopOutContract ) error {
9898
99- writeOpts := & SqliteTxOptions {}
99+ writeOpts := NewSqlWriteOpts ()
100100 return s .ExecTx (ctx , writeOpts , func (tx * sqlc.Queries ) error {
101101 insertArgs := loopToInsertArgs (
102102 hash , & swap .SwapContract ,
@@ -134,7 +134,7 @@ func (s *BaseDB) CreateLoopOut(ctx context.Context, hash lntypes.Hash,
134134func (s * BaseDB ) BatchCreateLoopOut (ctx context.Context ,
135135 swaps map [lntypes.Hash ]* LoopOutContract ) error {
136136
137- writeOpts := & SqliteTxOptions {}
137+ writeOpts := NewSqlWriteOpts ()
138138 return s .ExecTx (ctx , writeOpts , func (tx * sqlc.Queries ) error {
139139 for swapHash , swap := range swaps {
140140 swap := swap
@@ -223,7 +223,7 @@ func (s *BaseDB) FetchLoopInSwaps(ctx context.Context) (
223223func (s * BaseDB ) CreateLoopIn (ctx context.Context , hash lntypes.Hash ,
224224 swap * LoopInContract ) error {
225225
226- writeOpts := & SqliteTxOptions {}
226+ writeOpts := NewSqlWriteOpts ()
227227 return s .ExecTx (ctx , writeOpts , func (tx * sqlc.Queries ) error {
228228 insertArgs := loopToInsertArgs (
229229 hash , & swap .SwapContract ,
@@ -260,7 +260,7 @@ func (s *BaseDB) CreateLoopIn(ctx context.Context, hash lntypes.Hash,
260260func (s * BaseDB ) BatchCreateLoopIn (ctx context.Context ,
261261 swaps map [lntypes.Hash ]* LoopInContract ) error {
262262
263- writeOpts := & SqliteTxOptions {}
263+ writeOpts := NewSqlWriteOpts ()
264264 return s .ExecTx (ctx , writeOpts , func (tx * sqlc.Queries ) error {
265265 for swapHash , swap := range swaps {
266266 swap := swap
@@ -351,7 +351,7 @@ var _ SwapStore = (*BaseDB)(nil)
351351func (s * BaseDB ) updateLoop (ctx context.Context , hash lntypes.Hash ,
352352 time time.Time , state SwapStateData ) error {
353353
354- writeOpts := & SqliteTxOptions {}
354+ writeOpts := NewSqlWriteOpts ()
355355 return s .ExecTx (ctx , writeOpts , func (tx * sqlc.Queries ) error {
356356 updateParams := sqlc.InsertSwapUpdateParams {
357357 SwapHash : hash [:],
@@ -379,7 +379,7 @@ func (s *BaseDB) updateLoop(ctx context.Context, hash lntypes.Hash,
379379func (s * BaseDB ) BatchInsertUpdate (ctx context.Context ,
380380 updateData map [lntypes.Hash ][]BatchInsertUpdateData ) error {
381381
382- writeOpts := & SqliteTxOptions {}
382+ writeOpts := NewSqlWriteOpts ()
383383 return s .ExecTx (ctx , writeOpts , func (tx * sqlc.Queries ) error {
384384 for swapHash , updates := range updateData {
385385 for _ , update := range updates {
@@ -412,7 +412,7 @@ func (s *BaseDB) BatchInsertUpdate(ctx context.Context,
412412func (b * BaseDB ) BatchUpdateLoopOutSwapCosts (ctx context.Context ,
413413 costs map [lntypes.Hash ]SwapCost ) error {
414414
415- writeOpts := & SqliteTxOptions {}
415+ writeOpts := NewSqlWriteOpts ()
416416 return b .ExecTx (ctx , writeOpts , func (tx * sqlc.Queries ) error {
417417 for swapHash , cost := range costs {
418418 lastUpdateID , err := tx .GetLastUpdateID (
0 commit comments