From 2f457352c5efe3823e244735ae064af7dd842295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Preu=C3=9F?= Date: Fri, 1 Jan 2021 17:28:10 +0100 Subject: [PATCH] Undo test rename --- app/Client/Client.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Client/Client.php b/app/Client/Client.php index 889a13a..5145963 100644 --- a/app/Client/Client.php +++ b/app/Client/Client.php @@ -45,7 +45,7 @@ class Client $sharedUrl = $this->prepareSharedUrl($sharedUrl); foreach ($subdomains as $subdomain) { - $this->connectToServerAndShareHttp($sharedUrl, $subdomain, $this->configuration->auth()); + $this->connectToServer($sharedUrl, $subdomain, $this->configuration->auth()); } } @@ -67,7 +67,7 @@ class Client return sprintf('%s:%s:%s', $scheme, $url, $port); } - public function connectToServerAndShareHttp(string $sharedUrl, $subdomain, $authToken = ''): PromiseInterface + public function connectToServer(string $sharedUrl, $subdomain, $authToken = ''): PromiseInterface { $deferred = new Deferred(); $promise = $deferred->promise(); @@ -88,7 +88,7 @@ class Client $this->logger->error('Connection to server closed.'); $this->retryConnectionOrExit(function () use ($sharedUrl, $subdomain, $authToken) { - $this->connectToServerAndShareHttp($sharedUrl, $subdomain, $authToken); + $this->connectToServer($sharedUrl, $subdomain, $authToken); }); }); @@ -121,7 +121,7 @@ class Client }, function (\Exception $e) use ($deferred, $sharedUrl, $subdomain, $authToken) { if ($this->connectionRetries > 0) { $this->retryConnectionOrExit(function () use ($sharedUrl, $subdomain, $authToken) { - $this->connectToServerAndShareHttp($sharedUrl, $subdomain, $authToken); + $this->connectToServer($sharedUrl, $subdomain, $authToken); }); return;