Skip to content

Commit a14ac95

Browse files
committed
must run retried function at least once
1 parent a888735 commit a14ac95

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

dbos/system_database.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2698,11 +2698,6 @@ func retry(ctx context.Context, fn func() error, options ...retryOption) error {
26982698
attempt := 0
26992699

27002700
for {
2701-
// Check context before attempting
2702-
if err := ctx.Err(); err != nil {
2703-
return err
2704-
}
2705-
27062701
lastErr = fn()
27072702

27082703
// Success and rollback case

0 commit comments

Comments
 (0)