改名
This commit is contained in:
+5
-2
@@ -6,11 +6,15 @@ use Exception;
|
|||||||
use Http\Context\Context;
|
use Http\Context\Context;
|
||||||
use Kiri\Events\EventProvider;
|
use Kiri\Events\EventProvider;
|
||||||
use Kiri\Kiri;
|
use Kiri\Kiri;
|
||||||
|
use Kiri\Pool\StopHeartbeatCheck;
|
||||||
use PDOStatement;
|
use PDOStatement;
|
||||||
use Server\Events\OnWorkerExit;
|
use Server\Events\OnWorkerExit;
|
||||||
use Swoole\Timer;
|
use Swoole\Timer;
|
||||||
|
|
||||||
class PDO
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
class PDO implements StopHeartbeatCheck
|
||||||
{
|
{
|
||||||
|
|
||||||
const DB_ERROR_MESSAGE = 'The system is busy, please try again later.';
|
const DB_ERROR_MESSAGE = 'The system is busy, please try again later.';
|
||||||
@@ -76,7 +80,6 @@ class PDO
|
|||||||
try {
|
try {
|
||||||
if (env('state') == 'exit') {
|
if (env('state') == 'exit') {
|
||||||
echo 'timer end.' . PHP_EOL;
|
echo 'timer end.' . PHP_EOL;
|
||||||
$this->stopHeartbeatCheck();
|
|
||||||
}
|
}
|
||||||
if (time() - $this->_last > 10 * 60) {
|
if (time() - $this->_last > 10 * 60) {
|
||||||
$this->stopHeartbeatCheck();
|
$this->stopHeartbeatCheck();
|
||||||
|
|||||||
Reference in New Issue
Block a user