Skip to content

Commit

Permalink
avoid rollbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
diego-escobedo committed Mar 23, 2023
1 parent f030219 commit 9963b96
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions go/event-guidance/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,6 @@ func main() {
log.Printf("commit records failed: %v", err)
panic(fmt.Errorf("commit records failed: %w", err))
}
} else {
if err := tx.Rollback(); err != nil {
// again, this should be a fatal error
log.Printf("Error rolling back transaction: %s\n", err)
panic(err)
}
}

}
Expand Down

0 comments on commit 9963b96

Please sign in to comment.