modify
This commit is contained in:
@@ -35,7 +35,6 @@ class DatabasesProviders extends Providers
|
||||
|
||||
$event = Snowflake::app()->getEvent();
|
||||
$event->on(Event::SERVER_WORKER_START, [$this, 'createPool']);
|
||||
$event->on(Event::SERVER_TASK_START, [$this, 'createPool']);
|
||||
|
||||
$event->on(Event::SERVER_WORKER_START, [$this, 'scanModel']);
|
||||
$event->on(Event::SERVER_TASK_START, [$this, 'scanModel']);
|
||||
|
||||
@@ -40,7 +40,6 @@ class Redis extends Component
|
||||
$event->on(Event::SYSTEM_RESOURCE_CLEAN, [$this, 'destroy']);
|
||||
$event->on(Event::SYSTEM_RESOURCE_RELEASES, [$this, 'release']);
|
||||
$event->on(Event::SERVER_WORKER_START, [$this, 'createPool']);
|
||||
$event->on(Event::SERVER_TASK_START, [$this, 'createPool']);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user