Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -96,9 +96,6 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
|
|||||||
$async_time = (int)Config::get('consul.async_time', 1000);
|
$async_time = (int)Config::get('consul.async_time', 1000);
|
||||||
Timer::tick($async_time, static function ($timeId) {
|
Timer::tick($async_time, static function ($timeId) {
|
||||||
if (env('state', 'start') == 'exit') {
|
if (env('state', 'start') == 'exit') {
|
||||||
|
|
||||||
var_dump('clear');
|
|
||||||
|
|
||||||
Timer::clear($timeId);
|
Timer::clear($timeId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ class RpcManager extends Component
|
|||||||
$service = Kiri::getDi()->get(Agent::class);
|
$service = Kiri::getDi()->get(Agent::class);
|
||||||
|
|
||||||
$info = $service->service->service_health($config['config']['ID']);
|
$info = $service->service->service_health($config['config']['ID']);
|
||||||
|
var_dump($info);
|
||||||
if ($info->getStatusCode() == 200) {
|
if ($info->getStatusCode() == 200) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user