This commit is contained in:
2021-02-23 19:31:00 +08:00
parent a78280af29
commit 8397499502
+1 -1
View File
@@ -28,7 +28,7 @@ class ObjectPool extends \Snowflake\Abstracts\Pool
*/ */
public function init() public function init()
{ {
$this->max = 100; $this->max = 5000;
$event = Snowflake::app()->getEvent(); $event = Snowflake::app()->getEvent();
$event->on(Event::EVENT_AFTER_REQUEST, [$this, 'destruct']); $event->on(Event::EVENT_AFTER_REQUEST, [$this, 'destruct']);