Revert "改名"
This reverts commit fdf58326
This commit is contained in:
+1
-1
@@ -90,11 +90,11 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
|
|||||||
*/
|
*/
|
||||||
public function consulWatches(OnWorkerStart|OnTaskerStart $server)
|
public function consulWatches(OnWorkerStart|OnTaskerStart $server)
|
||||||
{
|
{
|
||||||
var_dump($server->workerId);
|
|
||||||
if ($server->workerId != 0) {
|
if ($server->workerId != 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$async_time = (int)Config::get('consul.async_time', 1000);
|
$async_time = (int)Config::get('consul.async_time', 1000);
|
||||||
|
var_dump($async_time);
|
||||||
Timer::tick($async_time, static function ($timeId) {
|
Timer::tick($async_time, static function ($timeId) {
|
||||||
if (env('state', 'start') == 'exit') {
|
if (env('state', 'start') == 'exit') {
|
||||||
Timer::clear($timeId);
|
Timer::clear($timeId);
|
||||||
|
|||||||
Reference in New Issue
Block a user