This commit is contained in:
2021-12-02 15:26:43 +08:00
parent 439e3c566e
commit 23206bc683
+3
View File
@@ -94,6 +94,9 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
*/
public function consulWatches(OnWorkerStart|OnTaskerStart $server)
{
if ($server->workerId != 0) {
return;
}
Timer::tick(1000, static function () {
Kiri::getDi()->get(RpcManager::class)->tick();
});