Ian Lozinski 9 năm trước cách đây
mục cha
commit
78ec053b2f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      session.go

+ 1 - 1
session.go

@@ -968,7 +968,7 @@ func (q *Query) MapScanCAS(dest map[string]interface{}) (applied bool, err error
 // 		qry.Release()
 func (q *Query) Release() {
 	q.reset()
-	pool.Put(q)
+	queryPool.Put(q)
 }
 
 // reset zeroes out all fields of a query so that it can be safely pooled.