We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eca2010 commit 939260dCopy full SHA for 939260d
db.go
@@ -101,6 +101,10 @@ func (t *Transaction) PGX(ctx context.Context, transactions ...func(pgx.Tx) erro
101
}()
102
err = fn(tx)
103
104
+
105
+ if err == nil {
106
+ continue
107
+ }
108
if errors.Is(err, context.Canceled) {
109
err = &retry.StopError{Err: err}
110
ctx = context.Background()
@@ -142,6 +146,10 @@ func (t *Transaction) DB(ctx context.Context, transactions ...func(Tx) error) er
142
146
143
147
144
148
149
150
151
152
145
153
154
155
0 commit comments