From 4e2c4633c14c34d66793fe36f2db56d1ddaa8b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 2 Dec 2021 14:22:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Note/JsonRpc.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/Note/JsonRpc.php b/src/Note/JsonRpc.php index e7377c9..b218a8d 100644 --- a/src/Note/JsonRpc.php +++ b/src/Note/JsonRpc.php @@ -67,16 +67,14 @@ use ReflectionException; "Meta" => $this->meta, "Port" => $rpcPort, "Check" => [ - "CheckId" => "service:rpc.json.{$this->service}." . $this->uniqueId, - "Name" => "service " . $this->service . ' health check', - "Notes" => "Script based health check", - "ServiceID" => $this->service, - "Definition" => [ - "TCP" => Network::local() . ":" . Config::get('rpc.port'), - "Interval" => "5s", - "Timeout" => "1s", - "DeregisterCriticalServiceAfter" => "30s" - ] + "CheckId" => "service:rpc.json.{$this->service}." . $this->uniqueId, + "Name" => "service " . $this->service . ' health check', + "Notes" => "Script based health check", + "ServiceID" => $this->service, + "TCP" => Network::local() . ":" . Config::get('rpc.port'), + "Interval" => "5s", + "Timeout" => "1s", + "DeregisterCriticalServiceAfter" => "30s" ], ]; }