sql's tx need to execute tx.Rollback(). create tx will new a goroutinue, it closed when execute tx.Commit() or tx.Rollback(), when run code failed in Begin and Commit, your code not run Rollback to release this new goroutinue. it maybe cause the progress cant stop. and I met it.
sql's tx need to execute tx.Rollback(). create tx will new a goroutinue, it closed when execute tx.Commit() or tx.Rollback(), when run code failed in Begin and Commit, your code not run Rollback to release this new goroutinue. it maybe cause the progress cant stop. and I met it.