Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaocaigua committed Jul 13, 2019
1 parent 5484906 commit 00d7770
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
20 changes: 18 additions & 2 deletions README.md

Large diffs are not rendered by default.

Binary file added easyswoole rpc 流程图.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/TickProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,17 @@ protected function onShutDown()
/** @var Config $config */
$config = $this->getConfig()->getArg()['config'];
$serviceList = $this->getConfig()->getArg()['serviceList'];
foreach ($serviceList as $service) {//遍历本节点的服务列表
try {
$node = new ServiceNode();
$node->setServiceVersion($service->version());
$node->setServiceName($service->serviceName());
$node->setNodeId($config->getNodeId());
$config->getNodeManager()->deleteServiceNode($node);
} catch (\Throwable $throwable) {
$this->onException($throwable);
}
}
$this->udpBroadcast($config, $serviceList, BroadcastCommand::COMMAND_OFF_LINE);
}

Expand Down

0 comments on commit 00d7770

Please sign in to comment.