Skip to content

Commit

Permalink
up fix
Browse files Browse the repository at this point in the history
kiss291323003 committed Dec 23, 2020
1 parent cfa8485 commit 21b4e8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Rpc.php
Original file line number Diff line number Diff line change
@@ -18,9 +18,6 @@ class Rpc

function __construct(Config $config)
{
if(empty($config->getServer()->getServerIp())){
throw new Exception("ServerIp is require for Rpc Server Config");
}
$this->manager = new Manager($config);
$this->config = $config;
}
@@ -42,6 +39,9 @@ function client():Client

function attachServer(Server $server)
{
if(empty($this->config->getServer()->getServerIp())){
throw new Exception("ServerIp is require for Rpc Server Config");
}
$serviceWorkers = $this->__getServiceWorker();
/** @var ServiceWorker $value */
foreach ($serviceWorkers as $serviceWorker) {

0 comments on commit 21b4e8a

Please sign in to comment.