mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
Deleted consul services will be deleted by the latest one.
This commit is contained in:
parent
fe7b09a2c1
commit
c8c4af430e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user