mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 10:40:55 +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
|
//garbage recycle for stmt
|
||||||
func (s *stmtDecorator) destroy() {
|
func (s *stmtDecorator) destroy() {
|
||||||
s.wg.Wait()
|
go func() {
|
||||||
_ = s.stmt.Close()
|
s.wg.Wait()
|
||||||
|
_ = s.stmt.Close()
|
||||||
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
func newStmtDecorator(sqlStmt *sql.Stmt) *stmtDecorator {
|
func newStmtDecorator(sqlStmt *sql.Stmt) *stmtDecorator {
|
||||||
|
Loading…
Reference in New Issue
Block a user