This commit is contained in:
2021-12-02 15:25:41 +08:00
parent 14d395be5e
commit 439e3c566e
4 changed files with 79 additions and 27 deletions
+3 -11
View File
@@ -53,7 +53,6 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
public ContainerInterface $container;
private RpcManager $manager;
/**
@@ -95,16 +94,9 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
*/
public function consulWatches(OnWorkerStart|OnTaskerStart $server)
{
// Timer::tick(1000, static function () {
// $lists = Kiri::getDi()->get(RpcManager::class)->doneList();
// $health = Kiri::getDi()->get(Agent::class)->checks;
// foreach ($lists as $list) {
//
// $health->checks();
//
//
// }
// });
Timer::tick(1000, static function () {
Kiri::getDi()->get(RpcManager::class)->tick();
});
}