mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 03:50:54 +00:00
go destroy
This commit is contained in:
parent
6d9862b924
commit
89420eacd0
@ -443,8 +443,10 @@ func (s *stmtDecorator) release() {
|
||||
|
||||
//garbage recycle for stmt
|
||||
func (s *stmtDecorator) destroy() {
|
||||
s.wg.Wait()
|
||||
_ = s.stmt.Close()
|
||||
go func() {
|
||||
s.wg.Wait()
|
||||
_ = s.stmt.Close()
|
||||
}()
|
||||
}
|
||||
|
||||
func newStmtDecorator(sqlStmt *sql.Stmt) *stmtDecorator {
|
||||
|
Loading…
Reference in New Issue
Block a user