改名
This commit is contained in:
@@ -37,7 +37,7 @@ class DatabasesProviders extends Providers
|
|||||||
$event->on(Event::SERVER_WORKER_START, [$this, 'createPool']);
|
$event->on(Event::SERVER_WORKER_START, [$this, 'createPool']);
|
||||||
|
|
||||||
$event->on(Event::SERVER_WORKER_START, [$this, 'scanModel']);
|
$event->on(Event::SERVER_WORKER_START, [$this, 'scanModel']);
|
||||||
$event->on(Event::SERVER_TASK_START, [$this, 'scanModel']);
|
// $event->on(Event::SERVER_TASK_START, [$this, 'scanModel']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -10,10 +10,8 @@ use Snowflake\Abstracts\Config;
|
|||||||
use Snowflake\Event;
|
use Snowflake\Event;
|
||||||
use Snowflake\Exception\ComponentException;
|
use Snowflake\Exception\ComponentException;
|
||||||
use Snowflake\Exception\ConfigException;
|
use Snowflake\Exception\ConfigException;
|
||||||
use Snowflake\Process\Process;
|
|
||||||
use Snowflake\Snowflake;
|
use Snowflake\Snowflake;
|
||||||
use Swoole\Coroutine;
|
use Swoole\Coroutine;
|
||||||
use Swoole\Runtime;
|
|
||||||
use Swoole\Server;
|
use Swoole\Server;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -110,7 +108,7 @@ class OnWorkerStart extends Callback
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Coroutine\System::sleep(1);
|
sleep(1);
|
||||||
|
|
||||||
$this->ticker();
|
$this->ticker();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user