Golang, Transactions, Sql, Closures Functions, Acid.
yes, roll back the open transaction. If no, commit the open transaction. The major pitfall in this is I have 20 such places where I need to perform transactions across my codebase, I need to have 20 places where I need to write the commit & rollback logic in my service layer and in an ideal