Deleted consul services will be deleted by the latest one.

This commit is contained in:
李铭昕 2019-07-26 12:02:40 +08:00
parent fe7b09a2c1
commit c8c4af430e

View File

@ -74,9 +74,6 @@ class RegisterServiceListener implements ListenerInterface
*/
public function process(object $event)
{
foreach ($this->consulAgent->services()->json() as $service) {
$this->consulAgent->deregisterService($service['ID']);
}
$services = $this->serviceManager->all();
$servers = $this->getServers();
foreach ($services as $serviceName => $paths) {